Last active
April 30, 2018 18:45
-
-
Save denis-yuen/730b3504732bcb26f65bd2e4544ca8b0 to your computer and use it in GitHub Desktop.
Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"input_normal": { | |
"path": "normal.bam", | |
"class": "File" | |
}, | |
"input_tumour": { | |
"path": "tumour.bam", | |
"class": "File" | |
}, | |
"index": { | |
"path": "mutect_smallindex", | |
"class": "Directory" | |
}, | |
"ncpus": 12, | |
"out_vcf": "dmutations.vcf" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cwlVersion: v1.0 | |
class: CommandLineTool | |
doc: "example tool" | |
hints: | |
DockerRequirement: | |
dockerPull: ubuntu | |
requirements: | |
- class: InlineJavascriptRequirement | |
inputs: | |
input_normal: | |
type: File | |
doc: | | |
bam input for control | |
inputBinding: | |
position: 1 | |
secondaryFiles: | |
- .bai | |
input_tumour: | |
type: File | |
doc: | | |
bam input for tumour | |
inputBinding: | |
position: 2 | |
secondaryFiles: | |
- .bai | |
outputs: | |
mutations: | |
type: File | |
outputBinding: | |
glob: test.vcf | |
baseCommand: ["cat"] | |
arguments: | |
- valueFrom: $(inputs.input_normal.path + ".bai") | |
- valueFrom: $(inputs.input_tumour.path + ".bai") | |
stdout: test.vcf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env cwl-runner | |
class: Workflow | |
cwlVersion: v1.0 | |
doc: "example workflow" | |
requirements: | |
- class: MultipleInputFeatureRequirement | |
inputs: | |
TUMOUR_BAM: | |
type: File | |
NORMAL_BAM: | |
type: File | |
outputs: | |
OUTPUT: | |
type: File | |
outputSource: mutect/mutations | |
steps: | |
mutect: | |
run: tool.cwl | |
in: | |
input_normal: NORMAL_BAM | |
input_tumour: TUMOUR_BAM | |
out: [mutations] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env cwl-runner | |
class: Workflow | |
cwlVersion: v1.0 | |
doc: "example workflow" | |
requirements: | |
- class: MultipleInputFeatureRequirement | |
inputs: | |
TUMOUR_BAM: | |
type: File | |
secondaryFiles: | |
- .bai | |
NORMAL_BAM: | |
type: File | |
secondaryFiles: | |
- .bai | |
outputs: | |
OUTPUT: | |
type: File | |
outputSource: mutect/mutations | |
steps: | |
mutect: | |
run: tool.cwl | |
in: | |
input_normal: NORMAL_BAM | |
input_tumour: TUMOUR_BAM | |
out: [mutations] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"TUMOUR_BAM": { | |
"path": "tumour.bam", | |
"class": "File" | |
}, | |
"NORMAL_BAM": { | |
"path": "normal.bam", | |
"class": "File" | |
}, | |
"index": { | |
"path": "mutect_smallindex", | |
"class": "Directory" | |
}, | |
"ncpus": 12, | |
"output": "dmutations.vcf" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment