Mercurial > repos > devteam > picard1106
comparison picard_SamFormatConverter.xml @ 21:c2f6ec2fee7e draft
Uploaded
author | devteam |
---|---|
date | Tue, 11 Feb 2014 18:42:41 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
20:7a6490baa53a | 21:c2f6ec2fee7e |
---|---|
1 <tool name="Picard SAM Format Converter" id="picard_SFC" version="0.1.0"> | |
2 <requirements><requirement type="package">picard</requirement></requirements> | |
3 <command interpreter="python"> | |
4 picard_wrapper.py | |
5 --input="$inputFile" | |
6 --output-format=$outputFormat | |
7 --output=$outFile | |
8 -j "\$JAVA_JAR_PATH/SamFormatConverter.jar" | |
9 </command> | |
10 <inputs> | |
11 <param format="bam,sam" name="inputFile" type="data" label="SAM/BAM" | |
12 help="If empty, upload or import a SAM/BAM dataset." /> | |
13 <param name="outputFormat" type="boolean" checked="True" truevalue="bam" falsevalue="sam" label="Output bam instead of sam" help="Uncheck for sam output"/> | |
14 </inputs> | |
15 <outputs> | |
16 <data name="outFile" format="bam" label="${tool.name} on ${on_string}: ${outputFormat} with read groups replaced"> | |
17 <change_format> | |
18 <when input="outputFormat" value="sam" format="sam" /> | |
19 </change_format> | |
20 </data> | |
21 </outputs> | |
22 <tests> | |
23 <test> | |
24 <!-- Command for replacing read groups in bam: | |
25 java -jar SamFormatConverter.jar VALIDATION_STRINGENCY=LENIENT I=test-data/picard_SFC_input1.sam O=picard_SFC_output1.samĀ· | |
26 --> | |
27 <param name="inputFile" value="picard_ARRG_input1.bam" /> | |
28 <param name="outputFormat" value="False" /> | |
29 <output name="outFile" file="picard_ARRG_output1.sam" ftype="sam" /> | |
30 </test> | |
31 <test> | |
32 <!-- Command for replacing read groups in sam: | |
33 java -jar AddOrReplaceReadGroups.jar VALIDATION_STRINGENCY=LENIENT I=test-data/picard_ARRG_input1.sam O=picard_ARRG_output2.sam RGLB=LIB RGPL=IL RGPU=PL | |
34 picard_ARRG_input1.bam can be created from picard_ARRG_input1.sam | |
35 --> | |
36 <param name="inputFile" value="picard_ARRG_input1.sam" /> | |
37 <output name="outFile" file="picard_ARRG_output2.sam" ftype="sam" /> | |
38 </test> | |
39 </tests> | |
40 <help> | |
41 | |
42 .. class:: infomark | |
43 | |
44 **Purpose** | |
45 | |
46 Convert a BAM file to a SAM file, or BAM to SAM. | |
47 | |
48 This is a Galaxy wrapper for SamFormatConverter, a part of the external package Picard-tools_. | |
49 | |
50 .. _Picard-tools: http://www.google.com/search?q=picard+samtools | |
51 | |
52 ------ | |
53 | |
54 .. class:: infomark | |
55 | |
56 **Inputs, outputs, and parameters** | |
57 | |
58 Either a sam file or a bam file must be supplied. If a bam file is used, it must | |
59 be coordinate-sorted. Galaxy currently coordinate-sorts all bam files. | |
60 | |
61 The output file is either bam (the default) or sam, according to user selection, | |
62 and contains the same information as the input file except for the appropraite | |
63 additional (or modified) read group tags. Bam is recommended since it is smaller. | |
64 | |
65 **Warning on SAM/BAM quality** | |
66 | |
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** | |
68 flag when it runs Picard, which allows reads to be discarded if they're empty or don't map. This appears | |
69 to be the only way to deal with SAM/BAM that cannot be parsed. | |
70 | |
71 | |
72 </help> | |
73 </tool> | |
74 |