annotate picard_BamIndexStats.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="BAM Index Statistics" id="picard_BamIndexStats" version="1.56.0">
f4d018471628 Uploaded
jpruab
parents:
diff changeset
2 <requirements><requirement type="package" version="1.56.0">picard</requirement></requirements>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
3 <command interpreter="python">
f4d018471628 Uploaded
jpruab
parents:
diff changeset
4 picard_wrapper.py
f4d018471628 Uploaded
jpruab
parents:
diff changeset
5 --input "${input_file}"
f4d018471628 Uploaded
jpruab
parents:
diff changeset
6 --bai-file "${input_file.metadata.bam_index}"
f4d018471628 Uploaded
jpruab
parents:
diff changeset
7 -t "${htmlfile}"
f4d018471628 Uploaded
jpruab
parents:
diff changeset
8 -d "${htmlfile.files_path}"
f4d018471628 Uploaded
jpruab
parents:
diff changeset
9 -j "\$JAVA_JAR_PATH/BamIndexStats.jar"
f4d018471628 Uploaded
jpruab
parents:
diff changeset
10 --tmpdir "${__new_file_path__}"
f4d018471628 Uploaded
jpruab
parents:
diff changeset
11 </command>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
12 <inputs>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
13 <param format="bam" name="input_file" type="data" label="BAM dataset to generate statistics for"
f4d018471628 Uploaded
jpruab
parents:
diff changeset
14 help="If empty, upload or import a BAM dataset" />
f4d018471628 Uploaded
jpruab
parents:
diff changeset
15 </inputs>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
16 <outputs>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
17 <data format="html" name="htmlfile" label="${tool.name}_on_${on_string}.html" />
f4d018471628 Uploaded
jpruab
parents:
diff changeset
18 </outputs>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
19 <tests>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
20 <test>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
21 <!-- Command
f4d018471628 Uploaded
jpruab
parents:
diff changeset
22 java -jar BamIndexStats.jar I=test-data/picard_input_tiny_coord.bam > picard_BIS_output1.txt
f4d018471628 Uploaded
jpruab
parents:
diff changeset
23 picard_input_tiny_coord.bam can be created from picard_input_tiny_coord.sam
f4d018471628 Uploaded
jpruab
parents:
diff changeset
24 -->
f4d018471628 Uploaded
jpruab
parents:
diff changeset
25 <param name="input_file" value="picard_input_tiny_coord.bam" ftype="bam" />
f4d018471628 Uploaded
jpruab
parents:
diff changeset
26 <output name="htmlfile" file="picard_BIS_output1.txt" ftype="html" compare="contains" lines_diff="12"/>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
27 </test>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
28 <test>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
29 <!-- Command
f4d018471628 Uploaded
jpruab
parents:
diff changeset
30 java -jar BamIndexStats.jar I=test-data/picard_BIS_input1.bam > picard_BIS_output2.txt
f4d018471628 Uploaded
jpruab
parents:
diff changeset
31 picard_BIS_input1.bam can be created from picard_BIS_input1.sam
f4d018471628 Uploaded
jpruab
parents:
diff changeset
32 -->
f4d018471628 Uploaded
jpruab
parents:
diff changeset
33 <param name="input_file" value="picard_BIS_input1.bam" ftype="bam" />
f4d018471628 Uploaded
jpruab
parents:
diff changeset
34 <output name="htmlfile" file="picard_BIS_output2.txt" ftype="html" compare="contains" lines_diff="12" />
f4d018471628 Uploaded
jpruab
parents:
diff changeset
35 </test>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
36 </tests>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
37 <help>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
38
f4d018471628 Uploaded
jpruab
parents:
diff changeset
39 .. class:: infomark
f4d018471628 Uploaded
jpruab
parents:
diff changeset
40
f4d018471628 Uploaded
jpruab
parents:
diff changeset
41 **Purpose**
f4d018471628 Uploaded
jpruab
parents:
diff changeset
42
f4d018471628 Uploaded
jpruab
parents:
diff changeset
43 Generate Bam Index Stats for a provided BAM file.
f4d018471628 Uploaded
jpruab
parents:
diff changeset
44
f4d018471628 Uploaded
jpruab
parents:
diff changeset
45 **Picard documentation**
f4d018471628 Uploaded
jpruab
parents:
diff changeset
46
f4d018471628 Uploaded
jpruab
parents:
diff changeset
47 This is a Galaxy wrapper for BamIndexStats, a part of the external package Picard-tools_.
f4d018471628 Uploaded
jpruab
parents:
diff changeset
48
f4d018471628 Uploaded
jpruab
parents:
diff changeset
49 .. _Picard-tools: http://www.google.com/search?q=picard+samtools
f4d018471628 Uploaded
jpruab
parents:
diff changeset
50
f4d018471628 Uploaded
jpruab
parents:
diff changeset
51 ------
f4d018471628 Uploaded
jpruab
parents:
diff changeset
52
f4d018471628 Uploaded
jpruab
parents:
diff changeset
53 .. class:: infomark
f4d018471628 Uploaded
jpruab
parents:
diff changeset
54
f4d018471628 Uploaded
jpruab
parents:
diff changeset
55 **Inputs and outputs**
f4d018471628 Uploaded
jpruab
parents:
diff changeset
56
f4d018471628 Uploaded
jpruab
parents:
diff changeset
57 The only input is the BAM file you wish to obtain statistics for, which is required.
f4d018471628 Uploaded
jpruab
parents:
diff changeset
58 Note that it must be coordinate-sorted. Galaxy currently coordinate-sorts all BAM files.
f4d018471628 Uploaded
jpruab
parents:
diff changeset
59
f4d018471628 Uploaded
jpruab
parents:
diff changeset
60 This tool outputs an HTML file that contains links to the actual metrics results, as well
f4d018471628 Uploaded
jpruab
parents:
diff changeset
61 as a log file with info on the exact command run.
f4d018471628 Uploaded
jpruab
parents:
diff changeset
62
f4d018471628 Uploaded
jpruab
parents:
diff changeset
63 .. class:: warningmark
f4d018471628 Uploaded
jpruab
parents:
diff changeset
64
f4d018471628 Uploaded
jpruab
parents:
diff changeset
65 **Warning on SAM/BAM quality**
f4d018471628 Uploaded
jpruab
parents:
diff changeset
66
f4d018471628 Uploaded
jpruab
parents:
diff changeset
67 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
68 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
69 to be the only way to deal with SAM/BAM that cannot be parsed.
f4d018471628 Uploaded
jpruab
parents:
diff changeset
70
f4d018471628 Uploaded
jpruab
parents:
diff changeset
71 ------
f4d018471628 Uploaded
jpruab
parents:
diff changeset
72
f4d018471628 Uploaded
jpruab
parents:
diff changeset
73 **Example**
f4d018471628 Uploaded
jpruab
parents:
diff changeset
74
f4d018471628 Uploaded
jpruab
parents:
diff changeset
75 Given a BAM file created from the following::
f4d018471628 Uploaded
jpruab
parents:
diff changeset
76
f4d018471628 Uploaded
jpruab
parents:
diff changeset
77 @HD VN:1.0 SO:coordinate
f4d018471628 Uploaded
jpruab
parents:
diff changeset
78 @SQ SN:chr1 LN:101
f4d018471628 Uploaded
jpruab
parents:
diff changeset
79 @SQ SN:chr7 LN:404
f4d018471628 Uploaded
jpruab
parents:
diff changeset
80 @SQ SN:chr8 LN:202
f4d018471628 Uploaded
jpruab
parents:
diff changeset
81 @SQ SN:chr10 LN:303
f4d018471628 Uploaded
jpruab
parents:
diff changeset
82 @SQ SN:chr14 LN:505
f4d018471628 Uploaded
jpruab
parents:
diff changeset
83 @RG ID:0 SM:Hi,Mom!
f4d018471628 Uploaded
jpruab
parents:
diff changeset
84 @RG ID:1 SM:samplesample DS:ClearDescription
f4d018471628 Uploaded
jpruab
parents:
diff changeset
85 @PG ID:1 PN:Hey! VN:2.0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
86 @CO Just a generic comment to make the header longer
f4d018471628 Uploaded
jpruab
parents:
diff changeset
87 read1 83 chr7 1 255 101M = 302 201 CAACAGAAGCNGGNATCTGTGTTTGTGTTTCGGATTTCCTGCTGAANNGNTTNTCGNNTCNNNNNNNNATCCCGATTTCNTTCCGCAGCTNACCTCCCAAN )'.*.+2,))II'I*/)-I*-)I.-)I)I),/-II..)./.,.).*II,I.II-)III0*IIIIIIII/32/,01460II/6/*0*/2/283//36868/I RG:Z:0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
88 read2 89 chr7 1 255 101M * 0 0 CAACAGAAGCNGGNATCTGTGTTTGTGTTTCGGATTTCCTGCTGAANNGNTTNTCGNNTCNNNNNNNNATCCCGATTTCNTTCCGCAGCTNACCTCCCAAN )'.*.+2,))II'I*/)-I*-)I.-)I)I),/-II..)./.,.).*II,I.II-)III0*IIIIIIII/32/,01460II/6/*0*/2/283//36868/I RG:Z:0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
89 read3 83 chr7 1 255 101M = 302 201 CAACAGAAGCNGGNATCTGTGTTTGTGTTTCGGATTTCCTGCTGAANNGNTTNTCGNNTCNNNNNNNNATCCCGATTTCNTTCCGCAGCTNACCTCCCAAN )'.*.+2,))II'I*/)-I*-)I.-)I)I),/-II..)./.,.).*II,I.II-)III0*IIIIIIII/32/,01460II/6/*0*/2/283//36868/I RG:Z:0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
90 read4 147 chr7 16 255 101M = 21 -96 CAACAGAAGCNGGNATCTGTGTTTGTGTTTCGGATTTCCTGCTGAANNGNTTNTCGNNTCNNNNNNNNATCCCGATTTCNTTCCGCAGCTNACCTCCCAAN )'.*.+2,))II'I*/)-I*-)I.-)I)I),/-II..)./.,.).*II,I.II-)III0*IIIIIIII/32/,01460II/6/*0*/2/283//36868/I RG:Z:0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
91 read5 99 chr7 21 255 101M = 16 96 CAACAGAAGCNGGNATCTGTGTTTGTGTTTCGGATTTCCTGCTGAANNGNTTNTCGNNTCNNNNNNNNATCCCGATTTCNTTCCGCAGCTNACCTCCCAAN )'.*.+2,))II'I*/)-I*-)I.-)I)I),/-II..)./.,.).*II,I.II-)III0*IIIIIIII/32/,01460II/6/*0*/2/283//36868/I RG:Z:0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
92 read6 163 chr7 302 255 101M = 1 -201 NCGCGGCATCNCGATTTCTTTCCGCAGCTAACCTCCCGACAGATCGGCAGCGCGTCGTGTAGGTTATTATGGTACATCTTGTCGTGCGGCNAGAGCATACA I/15445666651/566666553+2/14/I/555512+3/)-'/-I-'*+))*''13+3)'//++''/'))/3+I*5++)I'2+I+/*I-II*)I-./1'1 RG:Z:0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
93 read7 163 chr7 302 255 10M1D10M5I76M = 1 -201 NCGCGGCATCNCGATTTCTTTCCGCAGCTAACCTCCCGACAGATCGGCAGCGCGTCGTGTAGGTTATTATGGTACATCTTGTCGTGCGGCNAGAGCATACA I/15445666651/566666553+2/14/I/555512+3/)-'/-I-'*+))*''13+3)'//++''/'))/3+I*5++)I'2+I+/*I-II*)I-./1'1 RG:Z:0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
94 read8 165 * 0 0 * chr7 1 0 NCGCGGCATCNCGATTTCTTTCCGCAGCTAACCTCCCGACAGATCGGCAGCGCGTCGTGTAGGTTATTATGGTACATCTTGTCGTGCGGCNAGAGCATACA I/15445666651/566666553+2/14/I/555512+3/)-'/-I-'*+))*''13+3)'//++''/'))/3+I*5++)I'2+I+/*I-II*)I-./1'1 RG:Z:0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
95
f4d018471628 Uploaded
jpruab
parents:
diff changeset
96 The following metrics file will be produced::
f4d018471628 Uploaded
jpruab
parents:
diff changeset
97
f4d018471628 Uploaded
jpruab
parents:
diff changeset
98 chr1 length= 101 Aligned= 0 Unaligned= 0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
99 chr7 length= 404 Aligned= 7 Unaligned= 0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
100 chr8 length= 202 Aligned= 0 Unaligned= 0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
101 chr10 length= 303 Aligned= 0 Unaligned= 0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
102 chr14 length= 505 Aligned= 0 Unaligned= 0
f4d018471628 Uploaded
jpruab
parents:
diff changeset
103 NoCoordinateCount= 1
f4d018471628 Uploaded
jpruab
parents:
diff changeset
104
f4d018471628 Uploaded
jpruab
parents:
diff changeset
105 </help>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
106 </tool>
f4d018471628 Uploaded
jpruab
parents:
diff changeset
107
f4d018471628 Uploaded
jpruab
parents:
diff changeset
108
f4d018471628 Uploaded
jpruab
parents:
diff changeset
109
f4d018471628 Uploaded
jpruab
parents:
diff changeset
110
f4d018471628 Uploaded
jpruab
parents:
diff changeset
111
f4d018471628 Uploaded
jpruab
parents:
diff changeset
112
f4d018471628 Uploaded
jpruab
parents:
diff changeset
113
f4d018471628 Uploaded
jpruab
parents:
diff changeset
114
f4d018471628 Uploaded
jpruab
parents:
diff changeset
115
f4d018471628 Uploaded
jpruab
parents:
diff changeset
116
f4d018471628 Uploaded
jpruab
parents:
diff changeset
117
f4d018471628 Uploaded
jpruab
parents:
diff changeset
118