Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Commit 26501ac

Browse files
committed
Merge pull request #39 from FarahZKhan/patch-10
Update GATK-realignTargetCreator.cwl
2 parents 398d295 + ddfef5c commit 26501ac

File tree

1 file changed

+32
-16
lines changed

1 file changed

+32
-16
lines changed

tools/GATK-realignTargetCreator.cwl

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env cwl-runner
22
#
3-
# To use it as stand alone tool - example: "cwltool realignerTargerCreator.cwl realignerTargerCreator.json"
4-
#
3+
# To use it as stand alone tool - example: "cwltool --tmpdir-prefix="$(pwd)"/name_of_tmpDir/ --tmp-outdir-prefix="$(pwd)"/name_of_tmpDir/ ./realignTargetCreator.cwl ./realignTargetCreator.json"
4+
55
# Authors: farahk@student.unimelb.edu.au and skanwal@student.unimelb.edu.au UNIVERSITY OF MELBOURNE
66
# Developed for CWL consortium http://commonwl.org/
77

88
class: CommandLineTool
99

1010
description: |
1111
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.
12-
Usage: java -jar GenomeAnalysisTK.jar -T RealignerTargetCreator -R reference.fasta -I inout.bam --known indels.vcf -o forIndelRealigner.intervals
12+
Usage: java -jar GenomeAnalysisTK.jar -T RealignerTargetCreator -R reference.fasta -I input.bam --known indels.vcf -o forIndelRealigner.intervals
1313
Options:
1414
-T tool Tool name to be executed
1515
-R File Reference sequence in fasta format
@@ -20,29 +20,44 @@ requirements:
2020
- import: node-engine.cwl
2121
- import: envvar-global.cwl
2222
- import: gatk-docker.cwl
23+
- class: CreateFileRequirement
24+
fileDef:
25+
- filename:
26+
engine: node-engine.cwl
27+
script: $job['inputBam_realign'].path.split('/').slice(-1)[0]
28+
fileContent:
29+
engine: "cwl:JsonPointer"
30+
script: /job/inputBam_realign
31+
32+
arguments:
33+
- valueFrom: "/tmp/job_tmp"
34+
position: 2
35+
separate: false
36+
prefix: "-Djava.io.tmpdir="
37+
38+
- valueFrom: "/home/biodocker/bin/gatk/target/GenomeAnalysisTK.jar"
39+
position: 3
40+
prefix: "-jar"
2341

2442
inputs:
43+
2544
- id: "#java_arg"
2645
type: string
2746
default: "-Xmx4g"
2847
inputBinding:
2948
position: 1
30-
31-
- id: "#jar_file"
32-
type: string
33-
inputBinding: { position: 2, prefix: "-jar" }
34-
description: GATK jar file
3549

3650
- id: "#RealignerTarget"
3751
type: string
3852
default: "RealignerTargetCreator"
39-
inputBinding: { position: 3, prefix: "-T" }
53+
inputBinding: { position: 4, prefix: "-T" }
4054
description: tool used for this step from GATK jar
55+
4156

4257
- id: "#reference"
4358
type: File
4459
inputBinding:
45-
position: 4
60+
position: 5
4661
prefix: "-R"
4762
secondaryFiles:
4863
- ".amb"
@@ -60,25 +75,26 @@ inputs:
6075
type: File
6176
description: bam file produced after mark-duplicates execution
6277
inputBinding:
63-
position: 5
78+
position: 6
6479
prefix: "-I"
6580
secondaryFiles:
66-
- ".bai"
67-
81+
- "^.bai"
82+
6883
- id: "#known"
6984
type:
7085
type: array
7186
items: File
7287
inputBinding: { prefix: "--known" }
73-
inputBinding: position: 6
88+
inputBinding:
89+
position: 7
7490

7591
- id: "#outputfile_realignTarget"
7692
type: string
7793
description: name of the output file from realignTargetCreator
7894
inputBinding:
79-
position: 9
95+
position: 8
8096
prefix: "-o"
81-
97+
8298
outputs:
8399
- id: "#output_realignTarget"
84100
type: File

0 commit comments

Comments
 (0)