diff options
author | zsloan | 2021-08-02 21:07:52 +0000 |
---|---|---|
committer | zsloan | 2021-08-02 21:07:52 +0000 |
commit | 85762647a0e54888bcc7cbd8a11d64cf22e07960 (patch) | |
tree | c33b1d81299d065af53db6864dc0fa6e5aee1208 | |
parent | 67f064606b9c8d4314701911dc4eedbaaa025cb0 (diff) | |
download | genenetwork3-85762647a0e54888bcc7cbd8a11d64cf22e07960.tar.gz |
Updated rqtl_wrapper to also return a map file when doing a pair-scan (since we need the list of markers/pseudomarkers and their positions)
-rw-r--r-- | scripts/rqtl_wrapper.R | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/rqtl_wrapper.R b/scripts/rqtl_wrapper.R index d8ecfaa..f9c2c3b 100644 --- a/scripts/rqtl_wrapper.R +++ b/scripts/rqtl_wrapper.R @@ -157,7 +157,7 @@ if (!is.null(opt$interval)) { verbose_print('Calculating genotype probabilities with interval mapping\n') cross_object <- calc.genoprob(cross_object, step=5, stepwidth="max") } else if (!is.null(opt$pairscan)) { - verbose_print('Calculating genotype probabilities with interval mapping\n') + verbose_print('Calculating genotype probabilities for pair-scan\n') cross_object <- calc.genoprob(cross_object, step=10) } else { verbose_print('Calculating genotype probabilities\n') @@ -246,7 +246,9 @@ if (!is.null(opt$addcovar) || !is.null(opt$control)){ verbose_print('Writing results to CSV file\n') if (!is.null(opt$pairscan)) { + map_out_file = file.path(opt$outdir, paste("MAP_", opt$filename, sep = "" )) write.csv(qtl_results[1], out_file) + write.csv(qtl_results[2], map_out_file) } else { write.csv(qtl_results, out_file) } |