Loading plink.c +3 −3 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ static const char ver_str[] = #ifdef STABLE_BUILD "PLINK v1.90b5.2" "PLINK v1.90b5.3" #else "PLINK v1.90p" #endif Loading @@ -105,7 +105,7 @@ static const char ver_str[] = #else " 32-bit" #endif " (9 Jan 2018)"; " (21 Feb 2018)"; static const char ver_str2[] = // include leading space if day < 10, so character length stays the same "" Loading plink_data.c +6 −4 Original line number Diff line number Diff line Loading @@ -16284,10 +16284,12 @@ int32_t merge_datasets(char* bedname, char* bimname, char* famname, char* outnam goto merge_datasets_ret_WRITE_FAIL; } if (is_dichot_pheno) { cc = pheno_c_char[ulii]; // bugfix (21 Feb 2018): need to use the map_reverse index here, // since the phenotypes correspond to ASCII-sorted sample ID order. cc = pheno_c_char[ujj]; fprintf(outfile, "\t%s\n", cc? ((cc == 1)? "2" : "-9") : "1"); } else { fprintf(outfile, "\t%g\n", pheno_d[ulii]); fprintf(outfile, "\t%g\n", pheno_d[ujj]); } } } Loading
plink.c +3 −3 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ static const char ver_str[] = #ifdef STABLE_BUILD "PLINK v1.90b5.2" "PLINK v1.90b5.3" #else "PLINK v1.90p" #endif Loading @@ -105,7 +105,7 @@ static const char ver_str[] = #else " 32-bit" #endif " (9 Jan 2018)"; " (21 Feb 2018)"; static const char ver_str2[] = // include leading space if day < 10, so character length stays the same "" Loading
plink_data.c +6 −4 Original line number Diff line number Diff line Loading @@ -16284,10 +16284,12 @@ int32_t merge_datasets(char* bedname, char* bimname, char* famname, char* outnam goto merge_datasets_ret_WRITE_FAIL; } if (is_dichot_pheno) { cc = pheno_c_char[ulii]; // bugfix (21 Feb 2018): need to use the map_reverse index here, // since the phenotypes correspond to ASCII-sorted sample ID order. cc = pheno_c_char[ujj]; fprintf(outfile, "\t%s\n", cc? ((cc == 1)? "2" : "-9") : "1"); } else { fprintf(outfile, "\t%g\n", pheno_d[ulii]); fprintf(outfile, "\t%g\n", pheno_d[ujj]); } } }