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

Commit b2f7b23

Browse files
committed
Create printReads.cwl
1 parent 31906e1 commit b2f7b23

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed

tools/printReads.cwl

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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+
Prints all reads that have a mapping quality above zero
11+
Usage: java -Xmx4g -jar GenomeAnalysisTK.jar -T PrintReads -R reference.fasta -I input1.bam -I input2.bam -o output.bam --read_filter MappingQualityZero
12+
Options:
13+
-T PrintReads Tool name to be executed
14+
-R reference.fasta Reference sequence in fasta format
15+
-I input.bam bam file produce from indelRealigner
16+
-BQSR recalibration_report.grp the recalibration table data in recalibration_report.grp produced by BaseRecalibration to recalibrate the quality scores in input.bam
17+
-o output.bam Output file name
18+
19+
requirements:
20+
- import: node-engine.cwl
21+
- import: envvar-global.cwl
22+
- import: gatk-docker.cwl
23+
24+
inputs:
25+
26+
- id: "#java_arg"
27+
type: string
28+
default: "-Xmx4g"
29+
inputBinding:
30+
position: 1
31+
32+
- id: "#jar_file"
33+
type: string
34+
inputBinding: { position: 2, prefix: "-jar" }
35+
description: GATK jar file
36+
37+
38+
- id: "#printReads"
39+
type: string
40+
default: "PrintReads"
41+
inputBinding: { position: 3, prefix: "-T" }
42+
description: tool used for this step from GATK jar
43+
44+
- id: "#reference"
45+
type: File
46+
inputBinding:
47+
position: 4
48+
prefix: "-R"
49+
secondaryFiles:
50+
- ".amb"
51+
- ".ann"
52+
- ".bwt"
53+
- ".pac"
54+
- ".rbwt"
55+
- ".rpac"
56+
- ".rsa"
57+
- ".sa"
58+
- ".fai"
59+
- "^.dict"
60+
61+
- id: "#inputBam_printReads"
62+
type: File
63+
description: bam file produced after indelRealigner
64+
inputBinding:
65+
position: 5
66+
prefix: "-I"
67+
secondaryFiles:
68+
- "^.bai"
69+
70+
- id: "#input_baseRecalibrator"
71+
type: File
72+
description: the recalibration table produced by BaseRecalibration
73+
inputBinding:
74+
position: 5
75+
prefix: "-BQSR"
76+
77+
- id: "#outputfile_printReads"
78+
type: string
79+
description: name of the output file from indelRealigner
80+
inputBinding:
81+
position: 9
82+
prefix: "-o"
83+
84+
outputs:
85+
- id: "#output_printReads"
86+
type: File
87+
outputBinding:
88+
glob:
89+
engine: cwl:JsonPointer
90+
script: /job/outputfile_printReads
91+
92+
baseCommand: ["java"]
93+

0 commit comments

Comments
 (0)