Skip to content

Commit

Permalink
Merge pull request #19 from TheJacksonLaboratory/fix/sr-bam
Browse files Browse the repository at this point in the history
added create-bam flag to spaceranger
  • Loading branch information
wflynny authored May 21, 2024
2 parents cfca364 + bd56a6a commit 57b25f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/spaceranger.nf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def construct_vis_cli_options(record) {
if (record.manual_alignment) { options["--loupe-alignment"] = record.manual_alignment }
if (record.slide_file) { options["--slidefile"] = record.slide_file }
if (record.requires_rotation) { options["--reorient-images"] = null }
if (record.no_bam) { options["--no-bam"] = null }

major_version = record.tool_version[0].toInteger()
if ((record.no_bam) && (major_version < 3)) { options["--no-bam"] = null }
if ((major_version >= 3)) { options["--create-bam"] = record.no_bam ? false : true }

return(join_map_items(options))
}
Expand Down

0 comments on commit 57b25f2

Please sign in to comment.