Skip to content

Commit

Permalink
Merge pull request #206 from dufeiyu/toil_compatibility
Browse files Browse the repository at this point in the history
Add cle_annotated_vcf_filter step and strelka_cpu_reserved parameter
  • Loading branch information
dufeiyu authored Oct 13, 2017
2 parents 110a1e3 + 6c417e1 commit ead5c70
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 3 deletions.
22 changes: 22 additions & 0 deletions detect_variants/cle_annotated_vcf_filter.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env cwl-runner

cwlVersion: v1.0
class: CommandLineTool
label: "cle_annotated_vcf_filter"
arguments: [
"/usr/bin/perl", "/usr/bin/docm_and_coding_indel_selection.pl",
$(inputs.annotated_vcf.path), $(runtime.outdir)
]
inputs:
annotated_vcf:
type: File
filter:
type: boolean
inputBinding:
prefix: "filter"
position: 1
outputs:
annotated_filtered_vcf:
type: File
outputBinding:
glob: "annotated_filtered.vcf"
32 changes: 31 additions & 1 deletion detect_variants/detect_variants.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ inputs:
secondaryFiles: [.tbi]
strelka_exome_mode:
type: boolean
strelka_cpu_reserved:
type: int?
default: 8
mutect_scatter_count:
type: int?
mutect_artifact_detection_mode:
Expand Down Expand Up @@ -63,6 +66,9 @@ inputs:
type: boolean?
hgvs_annotation:
type: boolean?
cle_vcf_filter:
type: boolean?
default: false
variants_to_table_fields:
type: string[]?
default: [CHROM,POS,ID,REF,ALT,set,AC,AF]
Expand Down Expand Up @@ -116,6 +122,10 @@ outputs:
type: File
outputSource: index/indexed_vcf
secondaryFiles: [.tbi]
final_filtered_vcf:
type: File
outputSource: annotated_filter_index/indexed_vcf
secondaryFiles: [.tbi]
final_tsv:
type: File
outputSource: add_vep_fields_to_table/annotated_variants_tsv
Expand Down Expand Up @@ -159,6 +169,7 @@ steps:
normal_cram: normal_cram
interval_list: interval_list
exome_mode: strelka_exome_mode
cpu_reserved: strelka_cpu_reserved
out:
[unfiltered_vcf, filtered_vcf]
varscan:
Expand Down Expand Up @@ -263,11 +274,30 @@ steps:
vcf: bgzip/bgzipped_file
out:
[indexed_vcf]
cle_annotated_vcf_filter:
run: cle_annotated_vcf_filter.cwl
in:
annotated_vcf: index/indexed_vcf
filter: cle_vcf_filter
out:
[annotated_filtered_vcf]
annotated_filter_bgzip:
run: bgzip.cwl
in:
file: cle_annotated_vcf_filter/annotated_filtered_vcf
out:
[bgzipped_file]
annotated_filter_index:
run: index.cwl
in:
vcf: annotated_filter_bgzip/bgzipped_file
out:
[indexed_vcf]
variants_to_table:
run: variants_to_table.cwl
in:
reference: reference
vcf: index/indexed_vcf
vcf: annotated_filter_index/indexed_vcf
fields: variants_to_table_fields
genotype_fields: variants_to_table_genotype_fields
out:
Expand Down
6 changes: 4 additions & 2 deletions strelka/strelka.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ label: "strelka 2.7.1"
baseCommand: ["/usr/bin/perl", "/usr/bin/strelka_helper.pl"]
requirements:
ResourceRequirement:
coresMin: 8
coresMin: 4
ramMin: 4000
arguments:
[ { valueFrom: $(runtime.cores), position: 1 },
[ { valueFrom: $(inputs.cpu_reserved), position: 1 },
{ valueFrom: $(runtime.outdir), position: 2 }]
inputs:
tumor_cram:
Expand Down Expand Up @@ -37,6 +37,8 @@ inputs:
inputBinding:
prefix: '--exome'
position: 6
cpu_reserved:
type: int?
outputs:
indels:
type: File
Expand Down
4 changes: 4 additions & 0 deletions strelka/workflow.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ inputs:
type: File
exome_mode:
type: boolean
cpu_reserved:
type: int?
default: 8
outputs:
unfiltered_vcf:
type: File
Expand All @@ -38,6 +41,7 @@ steps:
normal_cram: normal_cram
reference: reference
exome_mode: exome_mode
cpu_reserved: cpu_reserved
out:
[indels, snvs]
process:
Expand Down

0 comments on commit ead5c70

Please sign in to comment.