--- /dev/null
+cwlVersion: v1.1
+class: CommandLineTool
+label: Applying base quality score recalibration
+
+$namespaces:
+ arv: "http://arvados.org/cwl#"
+ cwltool: "http://commonwl.org/cwltool#"
+
+requirements:
+ DockerRequirement:
+ dockerPull: broadinstitute/gatk:4.1.7.0
+ InitialWorkDirRequirement:
+ listing:
+ - $(inputs.bam)
+
+hints:
+ arv:RuntimeConstraints:
+ outputDirType: keep_output_dir
+ keep_cache: 1024
+ ResourceRequirement:
+ ramMin: 5000
+ coresMin: 2
+
+inputs:
+ bam:
+ type: File
+ reference:
+ type: File
+ secondaryFiles:
+ - .amb
+ - .ann
+ - .bwt
+ - .pac
+ - .sa
+ - .fai
+ - ^.dict
+ sample: string
+ recaltable:
+ type: File
+
+outputs:
+ recalbam:
+ type: File
+ outputBinding:
+ glob: "*nodups_BQSR.bam"
+
+baseCommand: /gatk/gatk
+
+arguments:
+ - "--java-options"
+ - "-Xmx4G"
+ - ApplyBQSR
+ - prefix: "-R"
+ valueFrom: $(inputs.reference)
+ - prefix: "-I"
+ valueFrom: $(inputs.bam.basename)
+ - prefix: "--bqsr-recal-file"
+ valueFrom: $(inputs.recaltable)
+ - prefix: "-O"
+ valueFrom: $(inputs.sample)nodups_BQSR.bam
--- /dev/null
+cwlVersion: v1.1
+class: CommandLineTool
+label: Applying base quality score recalibration
+
+$namespaces:
+ arv: "http://arvados.org/cwl#"
+ cwltool: "http://commonwl.org/cwltool#"
+
+requirements:
+ DockerRequirement:
+ dockerPull: broadinstitute/gatk:4.1.7.0
+ InitialWorkDirRequirement:
+ listing:
+ - $(inputs.bam)
+
+hints:
+ arv:RuntimeConstraints:
+ outputDirType: keep_output_dir
+ keep_cache: 1024
+ ResourceRequirement:
+ ramMin: 5000
+ coresMin: 2
+
+inputs:
+ bam:
+ type: File
+ secondaryFiles:
+ - .bai
+ reference:
+ type: File
+ secondaryFiles:
+ - .amb
+ - .ann
+ - .bwt
+ - .pac
+ - .sa
+ - .fai
+ - ^.dict
+ sample: string
+ recaltable:
+ type: File
+ intervallist:
+ type: File
+
+outputs:
+ recalbam:
+ type: File
+ secondaryFiles:
+ - .bai
+ outputBinding:
+ glob: "*nodups_BQSR.bam"
+
+baseCommand: /gatk/gatk
+
+arguments:
+ - "--java-options"
+ - "-Xmx4G"
+ - ApplyBQSR
+ - prefix: "-R"
+ valueFrom: $(inputs.reference)
+ - prefix: "-I"
+ valueFrom: $(inputs.bam.basename)
+ - prefix: "--bqsr-recal-file"
+ valueFrom: $(inputs.recaltable)
+ - prefix: "-L"
+ valueFrom: $(inputs.intervallist)
+ - prefix: "-O"
+ valueFrom: $(inputs.sample)nodups_BQSR.bam
--- /dev/null
+cwlVersion: v1.1
+class: CommandLineTool
+label: Generating recalibration table for BQSR
+
+$namespaces:
+ arv: "http://arvados.org/cwl#"
+ cwltool: "http://commonwl.org/cwltool#"
+
+requirements:
+ DockerRequirement:
+ dockerPull: broadinstitute/gatk:4.1.7.0
+ InitialWorkDirRequirement:
+ listing:
+ - $(inputs.bam)
+
+hints:
+ arv:RuntimeConstraints:
+ outputDirType: keep_output_dir
+ keep_cache: 1024
+ ResourceRequirement:
+ ramMin: 5000
+ coresMin: 2
+
+inputs:
+ bam:
+ type: File
+ secondaryFiles:
+ - .bai
+ reference:
+ type: File
+ secondaryFiles:
+ - .amb
+ - .ann
+ - .bwt
+ - .pac
+ - .sa
+ - .fai
+ - ^.dict
+ sample: string
+ knownsites1:
+ type: File
+ secondaryFiles:
+ - .tbi
+ intervallist:
+ type: File
+
+outputs:
+ recaltable:
+ type: File
+ outputBinding:
+ glob: "*.table"
+
+baseCommand: /gatk/gatk
+
+arguments:
+ - "--java-options"
+ - "-Xmx4G"
+ - BaseRecalibrator
+ - prefix: "-R"
+ valueFrom: $(inputs.reference)
+ - prefix: "-I"
+ valueFrom: $(inputs.bam.basename)
+ - prefix: "--known-sites"
+ valueFrom: $(inputs.knownsites1)
+ - prefix: "-L"
+ valueFrom: $(inputs.intervallist)
+ - prefix: "-O"
+ valueFrom: $(inputs.sample)_recal_data.table
inputs:
bam:
type: File
+ secondaryFiles:
+ - .bai
reference:
type: File
secondaryFiles:
--- /dev/null
+cwlVersion: v1.1
+class: CommandLineTool
+label: Germline variant calling using GATK with output gvcf
+
+$namespaces:
+ arv: "http://arvados.org/cwl#"
+ cwltool: "http://commonwl.org/cwltool#"
+
+requirements:
+ DockerRequirement:
+ dockerPull: broadinstitute/gatk:4.1.7.0
+
+hints:
+ arv:RuntimeConstraints:
+ outputDirType: keep_output_dir
+ keep_cache: 1024
+ ResourceRequirement:
+ ramMin: 3500
+ coresMin: 2
+
+inputs:
+ bam:
+ type: File
+ secondaryFiles:
+ - .bai
+ reference:
+ type: File
+ secondaryFiles:
+ - .amb
+ - .ann
+ - .bwt
+ - .pac
+ - .sa
+ - .fai
+ - ^.dict
+ intervallist:
+ type: File
+ sample: string
+
+outputs:
+ gvcf:
+ type: File
+ outputBinding:
+ glob: "*vcf.gz"
+
+baseCommand: /gatk/gatk
+
+arguments:
+ - "--java-options"
+ - "-Xmx4G"
+ - HaplotypeCaller
+ - prefix: "-R"
+ valueFrom: $(inputs.reference)
+ - prefix: "-I"
+ valueFrom: $(inputs.bam)
+ - prefix: "-L"
+ valueFrom: $(inputs.intervallist)
+ - prefix: "-O"
+ valueFrom: $(runtime.outdir)/$(inputs.sample).gatk.g.vcf.gz
+ - prefix: "-ERC"
+ valueFrom: "GVCF"
+ - prefix: "-GQB"
+ valueFrom: "5"
+ - prefix: "-GQB"
+ valueFrom: "20"
+ - prefix: "-GQB"
+ valueFrom: "60"
--- /dev/null
+cwlVersion: v1.1
+class: CommandLineTool
+label: Creating interval files for scattering
+
+$namespaces:
+ arv: "http://arvados.org/cwl#"
+ cwltool: "http://commonwl.org/cwltool#"
+
+requirements:
+ DockerRequirement:
+ dockerPull: broadinstitute/gatk:4.1.7.0
+
+hints:
+ arv:RuntimeConstraints:
+ outputDirType: keep_output_dir
+ keep_cache: 1024
+ ResourceRequirement:
+ ramMin: 5000
+ coresMin: 2
+
+inputs:
+ reference:
+ type: File
+ secondaryFiles:
+ - .amb
+ - .ann
+ - .bwt
+ - .pac
+ - .sa
+ - .fai
+ - ^.dict
+ sample: string
+ scattercount: string
+
+outputs:
+ intervalfiles:
+ type: File[]
+ outputBinding:
+ glob: "intervalfiles/*.interval_list"
+
+baseCommand: /gatk/gatk
+
+arguments:
+ - "--java-options"
+ - "-Xmx4G"
+ - SplitIntervals
+ - prefix: "-R"
+ valueFrom: $(inputs.reference)
+ - prefix: "--scatter-count"
+ valueFrom: $(inputs.scattercount)
+ - prefix: "--subdivision-mode"
+ valueFrom: "BALANCING_WITHOUT_INTERVAL_SUBDIVISION"
+ - prefix: "-O"
+ valueFrom: "intervalfiles"
--- /dev/null
+cwlVersion: v1.1
+class: Workflow
+
+requirements:
+ - class: SubworkflowFeatureRequirement
+
+inputs:
+ bam:
+ type: File
+ secondaryFiles:
+ - .bai
+ reference:
+ type: File
+ secondaryFiles:
+ - .amb
+ - .ann
+ - .bwt
+ - .pac
+ - .sa
+ - .fai
+ - ^.dict
+ sample: string
+ knownsites1:
+ type: File
+ secondaryFiles:
+ - .tbi
+ intervallist:
+ type: File
+
+outputs:
+ gvcf:
+ type: File
+ outputSource: haplotypecaller/gvcf
+
+steps:
+ basecalibrator:
+ run: gatk-baserecalibrator-with-interval.cwl
+ in:
+ bam: bam
+ reference: reference
+ sample: sample
+ knownsites1: knownsites1
+ intervallist: intervallist
+ out: [recaltable]
+ applyBQSR:
+ run: gatk-applyBSQR-with-interval.cwl
+ in:
+ reference: reference
+ bam: bam
+ sample: sample
+ intervallist: intervallist
+ recaltable: basecalibrator/recaltable
+ out: [recalbam]
+ haplotypecaller:
+ run: gatk-haplotypecaller-with-interval.cwl
+ in:
+ reference: reference
+ bam: applyBQSR/recalbam
+ sample: sample
+ intervallist: intervallist
+ out: [gvcf]
cwlVersion: v1.1
class: CommandLineTool
+label: Indexing Bam File
$namespaces:
arv: "http://arvados.org/cwl#"
bam: File
outputs:
- out:
+ bam:
type: File
outputBinding:
glob: "*bam"
cwlVersion: v1.1
class: CommandLineTool
+label: Sorting Bam file
$namespaces:
arv: "http://arvados.org/cwl#"
sample: string
outputs:
- out:
+ bam:
type: File
outputBinding:
glob: "*sorted.bam"
--- /dev/null
+$namespaces:
+ arv: "http://arvados.org/cwl#"
+ cwltool: "http://commonwl.org/cwltool#"
+cwlVersion: v1.1
+class: Workflow
+
+requirements:
+ - class: SubworkflowFeatureRequirement
+ - class: ScatterFeatureRequirement
+
+inputs:
+ bam:
+ type: File
+ secondaryFiles:
+ - .bai
+ reference:
+ type: File
+ secondaryFiles:
+ - .amb
+ - .ann
+ - .bwt
+ - .pac
+ - .sa
+ - .fai
+ - ^.dict
+ sample: string
+ knownsites1:
+ type: File
+ secondaryFiles:
+ - .tbi
+ scattercount: string
+
+outputs:
+ gvcf:
+ type: File[]
+ outputSource: recal-haplotypecaller/gvcf
+
+steps:
+ splitintervals:
+ run: gatk-splitintervals.cwl
+ in:
+ reference: reference
+ sample: sample
+ scattercount: scattercount
+ out: [intervalfiles]
+
+ recal-haplotypecaller:
+ run: gatk-wf-with-interval.cwl
+ scatter: intervallist
+ in:
+ bam: bam
+ reference: reference
+ sample: sample
+ knownsites1: knownsites1
+ intervallist: splitintervals/intervalfiles
+ out: [gvcf]