|
| 1 | +#!/usr/bin/env cwl-runner |
| 2 | +# |
| 3 | +# To use it as stand alone tool - example: "cwltool realignerTargerCreator.cwl realignerTargerCreator.json" |
| 4 | +# Still testing to make it work as a part of the workflow |
| 5 | +# |
| 6 | +# Authors: [email protected] and [email protected] UNIVERSITY OF MELBOURNE |
| 7 | +# Developed for CWL consortium http://commonwl.org/ |
| 8 | + |
| 9 | +class: CommandLineTool |
| 10 | + |
| 11 | +description: | |
| 12 | + This is a tool wrapper for GATK tool called realignerTargetCreator. It accepts 3 input files and produces a file containing list of target intervals to pass to the IndelRealigner. |
| 13 | + Usage: java -jar GenomeAnalysisTK.jar -T RealignerTargetCreator -R reference.fasta -I inout.bam --known indels.vcf -o forIndelRealigner.intervals |
| 14 | + Options: |
| 15 | + -T tool Tool name to be executed |
| 16 | + -R File Reference sequence in fasta format |
| 17 | + -I File bam file produced from sam to bam conversion step |
| 18 | + --known File set of known indels |
| 19 | + |
| 20 | +requirements: |
| 21 | + - import: node-engine.cwl |
| 22 | + - import: envvar-global.cwl |
| 23 | + |
| 24 | +inputs: |
| 25 | + - id: "#java_arg" |
| 26 | + type: string |
| 27 | + default: "-Xmx4g" |
| 28 | + inputBinding: |
| 29 | + position: 1 |
| 30 | + |
| 31 | + - id: "#jar_file" |
| 32 | + type: File |
| 33 | + inputBinding: { position: 2, prefix: "-jar" } |
| 34 | + description: GATK jar file |
| 35 | + |
| 36 | + - id: "#RealignerTarget" |
| 37 | + type: string |
| 38 | + default: "RealignerTargetCreator" |
| 39 | + inputBinding: { position: 3, prefix: "-T" } |
| 40 | + description: tool used for this step from GATK jar |
| 41 | + |
| 42 | + - id: "#reference" |
| 43 | + type: File |
| 44 | + inputBinding: |
| 45 | + position: 4 |
| 46 | + prefix: "-R" |
| 47 | + secondaryFiles: |
| 48 | + - ".amb" |
| 49 | + - ".ann" |
| 50 | + - ".bwt" |
| 51 | + - ".pac" |
| 52 | + - ".rbwt" |
| 53 | + - ".rpac" |
| 54 | + - ".rsa" |
| 55 | + - ".sa" |
| 56 | + |
| 57 | + - id: "#inputBam_realign" |
| 58 | + type: File |
| 59 | + description: bam file produced after mark-duplicates execution |
| 60 | + inputBinding: |
| 61 | + position: 5 |
| 62 | + prefix: "-I" |
| 63 | + |
| 64 | + - id: "#known" |
| 65 | + type: |
| 66 | + type: array |
| 67 | + items: File |
| 68 | + inputBinding: { prefix: "--known" } |
| 69 | + inputBinding: position: 6 |
| 70 | + |
| 71 | + - id: "#outputfile_realignTarget" |
| 72 | + type: string |
| 73 | + description: name of the output file from realignTargetCreator |
| 74 | + inputBinding: |
| 75 | + position: 9 |
| 76 | + prefix: "-o" |
| 77 | + |
| 78 | +outputs: |
| 79 | + - id: "#output_realignTarget" |
| 80 | + type: File |
| 81 | + outputBinding: |
| 82 | + glob: |
| 83 | + engine: cwl:JsonPointer |
| 84 | + script: /job/outputfile_realignTarget |
| 85 | + |
| 86 | +baseCommand: ["java"] |
0 commit comments