annotate rgPicardInsertSize.xml @ 4:f4d018471628 draft default tip

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