diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/qtl2-impute-bimbam.R | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/qtl2-impute-bimbam.R b/scripts/qtl2-impute-bimbam.R index df5f6d6..2e11a40 100755 --- a/scripts/qtl2-impute-bimbam.R +++ b/scripts/qtl2-impute-bimbam.R @@ -82,12 +82,15 @@ for (chr_name in names(imputed)) { writeLines(vapply(rows, paste, character(1), collapse = ","), paste0(out_prefix, ".bimbam.txt")) -# The individual order of the calls, because it is the *cross's* order and not -# necessarily the panel's: a caller that writes a phenotype file positionally +# The individual order of the calls -- rownames, because maxmarg returns +# individuals x markers and colnames are therefore markers (measured: writing +# colnames put 1452 marker names in a file of individuals, every value aligned +# to nothing, and the run reported "number of analyzed individuals equals 0") -- +# because it is the *cross's* order and not necessarily the panel's: a caller that writes a phenotype file positionally # has to align to this, or the two disagree by name and every individual is # missing (measured: gemma answered "no individuals in common" and ravanan # reported no association files at all). -writeLines(colnames(imputed[[1]]), paste0(out_prefix, ".individuals.txt")) +writeLines(rownames(imputed[[1]]), paste0(out_prefix, ".individuals.txt")) writeLines(vapply(snps, paste, character(1), collapse = ","), paste0(out_prefix, ".snps.txt")) |
