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

Commit cd32792

Browse files
committed
Merge pull request #36 from FarahZKhan/patch-6
Create baseRecalibrator.cwl
2 parents 858f314 + f3f2fb6 commit cd32792

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

tools/GATK-baseRecalibrator.cwl

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#!/usr/bin/env cwl-runner
2+
#
3+
# Authors: [email protected] and [email protected] UNIVERSITY OF MELBOURNE
4+
# Developed for CWL consortium http://commonwl.org/
5+
6+
#!/usr/bin/env cwl-runner
7+
class: CommandLineTool
8+
9+
description: |
10+
Generate base recalibration table to compensate for systematic errors in basecalling confidences
11+
Options:
12+
-T BaseRecalibrator Tool name to be executed
13+
-R reference.fasta Reference sequence in fasta format
14+
-I my_reads.bam bam file produced from indelRealigner
15+
-knownSites latest_dbsnp.vcf set of known indels
16+
-o recal_data.table Output file name
17+
18+
requirements:
19+
- import: node-engine.cwl
20+
- import: envvar-global.cwl
21+
- import: gatk-docker.cwl
22+
23+
arguments:
24+
- valueFrom: "/home/biodocker/bin/gatk/target/GenomeAnalysisTK.jar"
25+
position: 2
26+
prefix: "-jar"
27+
28+
inputs:
29+
30+
- id: "#java_arg"
31+
type: string
32+
default: "-Xmx4g"
33+
inputBinding:
34+
position: 1
35+
36+
- id: "#BaseRecalibrator"
37+
type: string
38+
default: "BaseRecalibrator"
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+
- ".fai"
57+
- "^.dict"
58+
59+
- id: "#inputBam_BaseRecalibrator"
60+
type: File
61+
description: bam file produced after indelRealigner
62+
inputBinding:
63+
position: 5
64+
prefix: "-I"
65+
secondaryFiles:
66+
- "^.bai"
67+
68+
- id: "#known"
69+
type:
70+
type: array
71+
items: File
72+
inputBinding: { prefix: "-knownSites" }
73+
inputBinding:
74+
position: 6
75+
76+
- id: "#outputfile_BaseRecalibrator"
77+
type: string
78+
description: name of the output file from baseRecalibrator
79+
inputBinding:
80+
position: 7
81+
prefix: "-o"
82+
83+
outputs:
84+
- id: "#output_baseRecalibrator"
85+
type: File
86+
outputBinding:
87+
glob:
88+
engine: cwl:JsonPointer
89+
script: /job/outputfile_BaseRecalibrator
90+
91+
baseCommand: ["java"]
92+

0 commit comments

Comments
 (0)