about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/qtl2-impute-bimbam.R6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/qtl2-impute-bimbam.R b/scripts/qtl2-impute-bimbam.R
index 4003f4e..df5f6d6 100755
--- a/scripts/qtl2-impute-bimbam.R
+++ b/scripts/qtl2-impute-bimbam.R
@@ -82,6 +82,12 @@ 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
+# 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(vapply(snps, paste, character(1), collapse = ","),
            paste0(out_prefix, ".snps.txt"))