Skip to content

Commit 807e73e

Browse files
committed
only do cram qc if crams exist
1 parent 1330cf1 commit 807e73e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pipelines/wdl/glimpse/low_pass_imputation/Glimpse2LowPassImputation.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ workflow Glimpse2LowPassImputation {
77

88
Array[String] contigs
99

10-
# this is the path the a directory that contains sites vcf, sites tabke, and reference chunks file. should end with a "/
10+
# this is the path the a directory that contains sites vcf, sites table, and reference chunks file. should end with a "/"
1111
String reference_panel_prefix
1212

1313
File? input_vcf

pipelines/wdl/glimpse/low_pass_imputation/input_qc/LowPassImputationQC.wdl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ workflow InputQC {
3030
}
3131

3232
# validate that not more than one of these is provided
33-
if ( (defined(crams) && defined(cram_manifest))) {
33+
if ((defined(crams) && defined(cram_manifest))) {
3434
Boolean multiple_data_types_passes_qc = false
3535
String multiple_data_types_message = "Multiple input data types provided. Please provide only CRAM files (with corresponding CRAM index files and sample IDs) or a CRAM manifest."
3636
}
@@ -43,7 +43,7 @@ workflow InputQC {
4343
}
4444
}
4545
46-
Boolean do_cram_qc = select_first([ConvertCramManifestToCramArrays.passes_qc, true]) # only do cram QC if manifest conversion passed QC
46+
Boolean do_cram_qc = select_first([ConvertCramManifestToCramArrays.passes_qc, defined(crams)]) # only do cram QC if manifest conversion passed QC
4747
4848
# validations for array crams input
4949
if (do_cram_qc) {

0 commit comments

Comments
 (0)