Skip to content

Commit d3c809c

Browse files
committed
one sequencing facility changed how they run primrose, we change strategy
1 parent 185abdb commit d3c809c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

wdl/pipelines/PacBio/Utility/SplitMergedPacBioBamByReadgroup.wdl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ workflow SplitMergedPacBioBamByReadgroup {
1717

1818
Boolean unmap_bam
1919
Boolean convert_to_fq = false
20+
Boolean disable_primrose_check = false
2021

2122
String gcs_out_root_dir
2223
}
@@ -37,6 +38,7 @@ workflow SplitMergedPacBioBamByReadgroup {
3738
platform: "long reads platform the BAM was generated on; must be one of [PB, ONT]"
3839
convert_to_fq: "user option to convert to FASTQ (gz) or not"
3940
gcs_out_root_dir: "place to store the result files"
41+
disable_primrose_check: "when true, disable a QC check making sure primrose is run on all readgroups; only do this when you know what you're doing"
4042
}
4143

4244
##############################################################################################################################
@@ -49,9 +51,11 @@ workflow SplitMergedPacBioBamByReadgroup {
4951
}
5052
5153
# this guarantees that there are no read groups missing primrose runs
52-
call PBUtils.VerifyPacBioBamHasAppropriatePrimroseRuns as PrimroseCheck { input: bam = input_bam }
53-
if (0!= length(PrimroseCheck.readgroups_missing_primrose)) {
54-
call Utils.StopWorkflow as MissingPrimrose { input: reason = "Input BAM file has some of its read groups missing primrose calls."}
54+
if (!disable_primrose_check) {
55+
call PBUtils.VerifyPacBioBamHasAppropriatePrimroseRuns as PrimroseCheck { input: bam = input_bam }
56+
if (0!= length(PrimroseCheck.readgroups_missing_primrose)) {
57+
call Utils.StopWorkflow as MissingPrimrose { input: reason = "Input BAM file has some of its read groups missing primrose calls."}
58+
}
5559
}
5660
5761
# delegate

0 commit comments

Comments
 (0)