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