annotate picard_InsertSizeMetrics.xml @ 132:b2dd3911c3f5 draft

Deleted selected files
author devteam
date Wed, 26 Feb 2014 02:11:28 -0500
parents 7ea806787cf6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
105
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
1 <tool name="Insertion size metrics" id="PicardInsertSize" version="1.106.0">
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
2 <description>for PAIRED data</description>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
3 <requirements><requirement type="package" version="1.106.0">picard</requirement></requirements>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
4 <command interpreter="python">
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
5 picard_wrapper.py -i "${input_file}" -n "${out_prefix}" --tmpdir "${__new_file_path__}" --deviations "${deviations}"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
6 --histwidth "${histWidth}" --minpct "${minPct}" --malevel "${malevel}"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
7 -j "\$JAVA_JAR_PATH/CollectInsertSizeMetrics.jar" -d "${html_file.files_path}" -t "${html_file}"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
8 </command>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
9 <inputs>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
10 <param format="bam,sam" name="input_file" type="data" label="SAM/BAM dataset to generate statistics for"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
11 help="If empty, upload or import a SAM/BAM dataset."/>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
12 <param name="out_prefix" value="Insertion size metrics" type="text"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
13 label="Title for the output file" help="Use this remind you what the job was for" size="120" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
14 <param name="deviations" value="10.0" type="float"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
15 label="Deviations" size="5"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
16 help="See Picard documentation: Generate mean, sd and plots by trimming the data down to MEDIAN + DEVIATIONS*MEDIAN_ABSOLUTE_DEVIATION" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
17 <param name="histWidth" value="0" type="integer"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
18 label="Histogram width" size="5"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
19 help="Explicitly sets the histogram width option - leave 0 to ignore" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
20 <param name="minPct" value="0.05" type="float"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
21 label="Minimum percentage" size="5"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
22 help="Discard any data categories (out of FR, TANDEM, RF) that have fewer than this percentage of overall reads" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
23 <param name="malevel" value="0" type="select" multiple="true" label="Metric Accumulation Level"
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
24 help="Level(s) at which metrics will be accumulated">
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
25 <option value="ALL_READS" selected="true">All reads (default)</option>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
26 <option value="SAMPLE" default="true">Sample</option>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
27 <option value="LIBRARY" default="true">Library</option>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
28 <option value="READ_GROUP" default="true">Read group</option>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
29 </param>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
30 </inputs>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
31 <outputs>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
32 <data format="html" name="html_file" label="InsertSize_${out_prefix}.html"/>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
33 </outputs>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
34 <tests>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
35 <test>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
36 <param name="input_file" value="picard_input_tiny.sam" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
37 <param name="out_prefix" value="Insertion size metrics" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
38 <param name="deviations" value="10.0" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
39 <param name="histWidth" value="0" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
40 <param name="minPct" value="0.01" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
41 <param name="malevel" value="ALL_READS" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
42 <output name="html_file" file="picard_output_insertsize_tinysam.html" ftype="html" compare="contains" lines_diff="40" />
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
43 </test>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
44 </tests>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
45 <help>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
46
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
47
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
48 .. class:: infomark
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
49
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
50 **Purpose**
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
51
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
52 Reads a SAM or BAM file and describes the distribution
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
53 of insert size (excluding duplicates) with metrics and a histogram plot.
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
54
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
55 **Picard documentation**
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
56
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
57 This is a Galaxy wrapper for CollectInsertSizeMetrics, a part of the external package Picard-tools_.
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
58
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
59 .. _Picard-tools: http://www.google.com/search?q=picard+samtools
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
60
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
61 .. class:: warningmark
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
62
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
63 **Useful for paired data only**
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
64
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
65 This tool works for paired data only and can be expected to fail for single end data.
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
66
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
67 -----
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
68
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
69 .. class:: infomark
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
70
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
71 **Inputs, outputs, and parameters**
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
72
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
73 Picard documentation says (reformatted for Galaxy):
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
74
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
75 .. csv-table::
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
76 :header-rows: 1
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
77
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
78 Option,Description
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
79 "INPUT=File","SAM or BAM file Required."
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
80 "OUTPUT=File","File to write insert size metrics to Required."
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
81 "HISTOGRAM_FILE=File","File to write insert size histogram chart to Required."
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
82 "TAIL_LIMIT=Integer","When calculating mean and stdev stop when the bins in the tail of the distribution contain fewer than mode/TAIL_LIMIT items. This also limits how much data goes into each data category of the histogram."
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
83 "HISTOGRAM_WIDTH=Integer","Explicitly sets the histogram width, overriding the TAIL_LIMIT option. Also, when calculating mean and stdev, only bins LE HISTOGRAM_WIDTH will be included. "
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
84 "MINIMUM_PCT=Float","When generating the histogram, discard any data categories (out of FR, TANDEM, RF) that have fewer than this percentage of overall reads. (Range: 0 to 1) Default value: 0.01."
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
85 "STOP_AFTER=Integer","Stop after processing N reads, mainly for debugging. Default value: 0."
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
86 "CREATE_MD5_FILE=Boolean","Whether to create an MD5 digest for any BAM files created. Default value: false."
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
87
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
88 .. class:: warningmark
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
89
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
90 **Warning on SAM/BAM quality**
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
91
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
92 Many SAM/BAM files produced externally and uploaded to Galaxy do not fully conform to SAM/BAM specifications. Galaxy deals with this by using the **LENIENT**
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
93 flag when it runs Picard, which allows reads to be discarded if they're empty or don't map. This appears
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
94 to be the only way to deal with SAM/BAM that cannot be parsed.
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
95
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
96 </help>
7ea806787cf6 Uploaded
devteam
parents:
diff changeset
97 </tool>