annotate picard_CollectWgsMetrics.xml @ 2:801f5e934011 draft default tip

Uploaded
author devteam
date Thu, 23 Oct 2014 11:40:52 -0400
parents b76a4f17bbbb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
1 <tool name="CollectWgsMetrics" id="picard_CollectWgsMetrics" version="1.121.0">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
2 <description>compute metrics for evaluating of whole genome sequencing experiments</description>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
3 <requirements>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
4 <requirement type="package" version="1.121.0">picard</requirement>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
5 </requirements>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
6
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
7 <macros>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
8 <import>picard_macros.xml</import>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
9 </macros>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
10
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
11 <command>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
12 @java_options@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
13 ##set up input files
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
14
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
15 #set $reference_fasta_filename = "localref.fa"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
16
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
17 #if str( $reference_source.reference_source_selector ) == "history":
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
18 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &amp;&amp;
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
19 #else:
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
20 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
21 #end if
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
22
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
23 java -jar \$JAVA_JAR_PATH/CollectWgsMetrics.jar
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
24 INPUT="${inputFile}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
25 OUTPUT="${outFile}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
26 REFERENCE_SEQUENCE="${reference_fasta_filename}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
27 MINIMUM_MAPPING_QUALITY="${minimum_mapping_quality}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
28 MINIMUM_BASE_QUALITY="${minimum_base_quality}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
29 COVERAGE_CAP="${coverage_cap}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
30
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
31 VALIDATION_STRINGENCY="${validation_stringency}"
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
32 QUIET=true
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
33 VERBOSITY=ERROR
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
34
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
35 </command>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
36 <inputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
37 <param format="sam,bam" name="inputFile" type="data" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
38 <conditional name="reference_source">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
39 <param name="reference_source_selector" type="select" label="Load reference genome from">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
40 <option value="cached">Local cache</option>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
41 <option value="history">History</option>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
42 </param>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
43 <when value="cached">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
44 <param name="ref_file" type="select" label="Using reference genome" help="REFERENCE_SEQUENCE">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
45 <options from_data_table="all_fasta">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
46 </options>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
47 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
48 </param>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
49 </when>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
50 <when value="history">
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
51 <param name="ref_file" type="data" format="fasta" label="Use the folloing dataset as the reference sequence" help="REFERENCE_SEQUENCE; You can upload a FASTA sequence to the history and use it as reference" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
52 </when>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
53 </conditional>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
54 <param name="minimum_mapping_quality" type="integer" value="20" label="Minimum mapping quality for a read to contribute coverage" help="MINIMUM_MAPPING_QUALITY; default=20"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
55 <param name="minimum_base_quality" type="integer" value="20" label="Minimum base quality for a base to contribute coverage" help="MINIMUM_BASE_QUALITY; default=20"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
56 <param name="coverage_cap" type="integer" value="250" label="Treat bases with coverage exceeding this value as if they had coverage at this value" help="COVERAGE_CAP; default=250"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
57
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
58
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
59 <expand macro="VS" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
60
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
61 </inputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
62
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
63 <outputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
64 <data format="tabular" name="outFile" label="${tool.name} on ${on_string}: Summary data"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
65 </outputs>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
66
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
67 <tests>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
68 <test>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
69 <param name="reference_source_selector" value="history" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
70 <param name="minimum_mapping_quality" value="20" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
71 <param name="minimum_base_quality" value="20" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
72 <param name="coverage_cap" value="250" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
73 <param name="ref_file" value="picard_CollectWgsMetrics_ref.fa" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
74 <param name="inputFile" value="picard_CollectWgsMetrics.bam" ftype="bam" />
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
75 <output name="outFile" file="picard_CollectWgsMetrics_test1.tab" ftype="tabular" lines_diff="4"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
76 </test>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
77 </tests>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
78
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
79 <stdio>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
80 <exit_code range="1:" level="fatal"/>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
81 </stdio>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
82
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
83 <help>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
84
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
85 .. class:: infomark
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
86
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
87 **Purpose**
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
88
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
89 Computes a number of metrics that are useful for evaluating coverage and performance of whole genome sequencing experiments.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
90
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
91 @dataset_collections@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
92
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
93 @description@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
94
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
95 MINIMUM_MAPPING_QUALITY=Integer
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
96 MQ=Integer Minimum mapping quality for a read to contribute coverage. Default value: 20.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
97
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
98 MINIMUM_BASE_QUALITY=Integer
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
99 Q=Integer Minimum base quality for a base to contribute coverage. Default value: 20.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
100
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
101 COVERAGE_CAP=Integer
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
102 CAP=Integer Treat bases with coverage exceeding this value as if they had coverage at this value.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
103 Default value: 250.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
104
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
105 @more_info@
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
106
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
107 </help>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
108 </tool>
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
109
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
110