annotate picard_ReplaceSamHeader.xml @ 0:ff4ec13e496e draft

Uploaded tarball to repository
author devteam
date Tue, 23 Oct 2012 10:49:35 -0400
parents
children 52fdfc45590a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
1 <tool name="Replace SAM/BAM Header" id="picard_ReplaceSamHeader" version="1.56.0">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
2 <requirements><requirement type="package" version="1.56.0">picard</requirement></requirements>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
3 <command interpreter="python">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
4 picard_wrapper.py
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
5 --input "$inputFile"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
6 -o $outFile
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
7 --header-file $headerFile
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
8 --output-format $outputFormat
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
9 -j "\$JAVA_JAR_PATH/ReplaceSamHeader.jar"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
10 --tmpdir "${__new_file_path__}"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
11 </command>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
12 <inputs>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
13 <param format="bam,sam" name="inputFile" type="data" label="SAM/BAM dataset to replace header in (TARGET)"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
14 help="If empty, upload or import a SAM/BAM dataset." />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
15 <param format="bam,sam" name="headerFile" type="data" label="SAM/BAM to reader header from (SOURCE)"
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
16 help="If empty, upload or import a SAM/BAM dataset." />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
17 <param name="outputFormat" type="boolean" checked="True" truevalue="bam" falsevalue="sam" label="Output BAM instead of SAM" help="Uncheck for SAM output" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
18 </inputs>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
19 <outputs>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
20 <data name="outFile" format="bam" label="${tool.name} on ${on_string}: ${outputFormat} with replaced header">
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
21 <change_format>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
22 <when input="outputFormat" value="sam" format="sam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
23 </change_format>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
24 </data>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
25 </outputs>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
26 <tests>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
27 <test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
28 <!-- Command:
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
29 java -jar ReplaceSamHeader.jar VALIDATION_STRINGENCY=LENIENT I=test-data/picard_input_tiny_coord.bam HEADER=test-data/picard_RSH_input1.bam O=picard_RSH_output1.sam
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
30 picard_RSH_input1.bam can be made from picard_RSH_input1.sam
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
31 -->
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
32 <param name="inputFile" value="picard_input_tiny_coord.bam" ftype="bam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
33 <param name="headerFile" value="picard_RSH_input1.bam" ftype="bam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
34 <param name="outputFormat" value="False" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
35 <output name="outFile" file="picard_RSH_output1.sam" ftype="sam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
36 </test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
37 <test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
38 <!-- Command:
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
39 java -jar ReplaceSamHeader.jar VALIDATION_STRINGENCY=LENIENT I=test-data/picard_input_tiny_coord.sam HEADER=test-data/picard_RSH_input1.bam O=picard_RSH_output2.sam
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
40 picard_RSH_input1.bam can be made from picard_RSH_input1.sam
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
41 -->
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
42 <param name="inputFile" value="picard_input_tiny_coord.sam" ftype="sam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
43 <param name="headerFile" value="picard_RSH_input1.bam" ftype="bam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
44 <param name="outputFormat" value="False" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
45 <output name="outFile" file="picard_RSH_output2.sam" ftype="sam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
46 </test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
47 <test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
48 <!-- Command:
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
49 java -jar ReplaceSamHeader.jar VALIDATION_STRINGENCY=LENIENT I=test-data/picard_input_tiny_coord.sam HEADER=test-data/picard_RSH_input1.sam O=picard_RSH_output2.bam
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
50 -->
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
51 <param name="inputFile" value="picard_input_tiny_coord.sam" ftype="sam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
52 <param name="headerFile" value="picard_RSH_input1.sam" ftype="sam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
53 <param name="outputFormat" value="True" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
54 <output name="outFile" file="picard_RSH_output2.bam" ftype="bam" />
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
55 </test>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
56 </tests>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
57 <help>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
58
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
59
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
60 .. class:: infomark
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
61
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
62 **Purpose**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
63
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
64 Replace Sam Header with the header from another sam file. The tool does not do any
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
65 significant validation, so it's up to the user to make sure that the elements in
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
66 the header are relevant and that the new header has all the required things.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
67
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
68 Replace the SAMFileHeader in a SAM file with the given header. Validation is
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
69 minimal. It is up to the user to ensure that all the elements referred to in the
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
70 SAMRecords are present in the new header. Sort order of the two input files must
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
71 be the same.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
72
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
73 **Picard documentation**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
74
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
75 This is a Galaxy wrapper for ReplaceSamHeader, a part of the external package Picard-tools_.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
76
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
77 .. _Picard-tools: http://www.google.com/search?q=picard+samtools
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
78
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
79 ------
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
80
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
81 .. class:: infomark
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
82
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
83 **Inputs and outputs**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
84
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
85 Either a sam file or a bam file is required as the file whose header will be replaced.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
86 The header file is also required and can also be either sam or bam (it does not have
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
87 to be the same type as the other file). In both cases, if a bam file is used, it must
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
88 be coordinate-sorted. Galaxy currently coordinate-sorts all bam files.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
89
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
90 The tool will output either bam (the default) or sam. Bam is recommended since it is smaller.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
91
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
92 .. class:: warningmark
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
93
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
94 **Warning on SAM/BAM quality**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
95
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
96 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**
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
97 flag when it runs Picard, which allows reads to be discarded if they're empty or don't map. This appears
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
98 to be the only way to deal with SAM/BAM that cannot be parsed.
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
99
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
100
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
101
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
102 </help>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
103 </tool>
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
104
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
105
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
106
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
107
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
108
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
109
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
110
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
111
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
112
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
113
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
114
ff4ec13e496e Uploaded tarball to repository
devteam
parents:
diff changeset
115