Skip to content

Commit

Permalink
🔧 bypass cavatica bug; merge_nested
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiller15 committed Apr 20, 2023
1 parent 9051cf0 commit 64fee04
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions workflows/kfdrc_sentieon_alignment_wf.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ steps:
sentieon_license: sentieon_license
reference: untar_reference/indexed_fasta
in_alignments:
source: sentieon_readwriter_merge_bams/output_reads
valueFrom: $([self])
source: [sentieon_readwriter_merge_bams/output_reads]
linkMerge: merge_nested
out: [metrics_file, out_alignments]
sentieon_bqsr:
run: ../tools/sentieon_bqsr.cwl
Expand All @@ -350,8 +350,8 @@ steps:
sentieon_license: sentieon_license
reference: untar_reference/indexed_fasta
input_bam:
source: sentieon_bqsr/output_reads
valueFrom: $([self])
source: [sentieon_bqsr/output_reads]
linkMerge: merge_nested
output_file_name:
source: sentieon_bqsr/output_reads
valueFrom: $(self.nameroot+".cram")
Expand Down
15 changes: 9 additions & 6 deletions workflows/kfdrc_sentieon_gvcf_wf.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,14 @@ steps:
out: [indexed_fasta, dict]
sentieon_readwriter_bam_to_cram:
run: ../tools/sentieon_ReadWriter.cwl
when: $(inputs.enable_tool == true)
when: |
$(inputs.enable_tool == true && (inputs.input_bam.isArray ? inputs.input_bam[0].nameext != '.bam' : inputs.input_bam.nameext != '.bam'))
in:
sentieon_license: sentieon_license
reference: untar_reference/indexed_fasta
input_bam:
source: input_reads
valueFrom: $([self])
source: [input_reads]
linkMerge: merge_nested
output_file_name:
source: input_reads
valueFrom: $(self.nameroot+".bam")
Expand All @@ -128,7 +129,9 @@ steps:
run: ../tools/samtools_idxstats_xy_ratio.cwl
in:
run_idxstats: run_sex_metrics
input_bam: sentieon_readwriter_bam_to_cram/output_reads
input_bam:
source: [sentieon_readwriter_bam_to_cram/output_reads, input_reads]
pickValue: first_non_null
out: [output, ratio]
verifybamid_checkcontam_conditional:
run: ../tools/verifybamid_contamination_conditional.cwl
Expand All @@ -150,8 +153,8 @@ steps:
valueFrom: $(self).g.vcf.gz
indexed_reference_fasta: untar_reference/indexed_fasta
input_reads:
source: input_reads
valueFrom: $([self])
source: [input_reads]
linkMerge: merge_nested
qual_cal:
source: recal_table
valueFrom: |
Expand Down

0 comments on commit 64fee04

Please sign in to comment.