comparison picard_RevertSam.xml @ 0:4419e9980172 draft

Uploaded
author devteam
date Thu, 23 Oct 2014 12:03:34 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4419e9980172
1 <tool name="RevertSam" id="picard_RevertSam" version="1.122.0">
2 <description>revert SAM/BAM datasets to a previous state</description>
3 <requirements>
4 <requirement type="package" version="1.122.0">picard</requirement>
5 </requirements>
6
7 <macros>
8 <import>picard_macros.xml</import>
9 </macros>
10
11 <command>
12 @java_options@
13
14 java -jar \$JAVA_JAR_PATH/RevertSam.jar
15
16 INPUT="${inputFile}"
17 OUTPUT="${outFile}"
18
19 RESTORE_ORIGINAL_QUALITIES="${restore_original_qualities}"
20 REMOVE_DUPLICATE_INFORMATION="${remove_duplicate_information}"
21 REMOVE_ALIGNMENT_INFORMATION="${remove_alignment_information}"
22
23 #for $attribute_to_clear in $attributes_to_clear:
24 ATTRIBUTE_TO_CLEAR="${attribute_to_clear.attribute}"
25 #end for
26
27 SANITIZE="${sanitize}"
28 MAX_DISCARD_FRACTION="${max_discard_fraction}"
29 SAMPLE_ALIAS="${sample_alias}"
30 LIBRARY_NAME="${library_name}"
31
32 SORT_ORDER="${sort_order}"
33 VALIDATION_STRINGENCY="${validation_stringency}"
34 QUIET=true
35 VERBOSITY=ERROR
36
37 </command>
38 <inputs>
39 <param format="sam,bam" name="inputFile" type="data" multiple="True" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset"/>
40 <param name="restore_original_qualities" type="boolean" checked="True" label="Restore original qualities from the OQ field to the QUAL field if available" help="RESTORE_ORIGINAL_QUALITIES; default=True"/>
41 <param name="remove_duplicate_information" type="boolean" checked="True" label="Remove duplicate read flags from all reads" help="REMOVE_DUPLICATE_INFORMATION; Note that if this is true and REMOVE_ALIGNMENT_INFORMATION is set to False, the output may have the unusual but sometimes desirable trait of having unmapped reads that are marked as duplicates; default=True"/>
42 <param name="remove_alignment_information" type="boolean" checked="True" label="Remove all alignment information from the file" help="REMOVE_ALIGNMENT_INFORMATION; default=True"/>
43 <repeat name="attributes_to_clear" title="Clear attribute" min="0" help="You can provide multiple attributes">
44 <param name="attribute" type="text" size="10" label="When removing alignment information, specify optional tags to remove (e.g., XM)" help="ATTRIBUTE_TO_CLEAR"/>
45 </repeat>
46 <param name="sanitize" type="boolean" label="Discard reads in order to produce a consistent output BAM" help="SANITIZE; WARNING: This option is potentially destructive. Reads discarded include (but are not limited to) paired reads with missing mates, duplicated records, records with mismatches in length of bases and qualities. This option can only be enabled if the output sort order is queryname and will always cause sorting to occur; default=False"/>
47 <param name="max_discard_fraction" value="0.01" type="float" min="0.0" max="1.0" label="If SANITIZE=true and higher than MAX_DISCARD_FRACTION reads are discarded due to sanitization then the program will exit with an Exception instead of exiting cleanly" help="MAX_DISCARD_FRACTION; default=0.01"/>
48 <param name="sample_alias" type="text" size="40" value="null" label="The sample alias to use in the reverted output file. This will override the existing sample alias in the file and is used only if all the read groups in the input file have the same sample alias" help="SAMPLE_ALIAS; default=Null"/>
49 <param name="library_name" type="text" size="40" value="null" label="The library name to use in the reverted output file. This will override the existing sample alias in the file and is used only if all the read groups in the input file have the same sample alias" help="LIBRARY_NAME; default=Null"/>
50 <param name="sort_order" type="select" label="The sort order to create the reverted output file with" help="SORT_ORDER; Picard default=queryname; Galaxy default=coordinate">
51 <option value="coordinate" selected="True">Coordinate</option>
52 <option value="queryname">Queryname</option>
53 <option value="unsorted">Unsorted</option>
54 </param>
55 <expand macro="VS" />
56
57 </inputs>
58
59 <outputs>
60 <data format="bam" name="outFile" label="${tool.name} on ${on_string}: Reverted BAM dataset"/>
61 </outputs>
62
63 <tests>
64 <test>
65 <param name="inputFile" value="picard_RevertSam.bam" ftype="bam"/>
66 <param name="restore_original_qualities" value="True"/>
67 <param name="remove_duplicate_information" value="True"/>
68 <param name="remove_alignment_information" value="True"/>
69 <param name="attribute" value="XM"/>
70 <param name="sanitize" value="False"/>
71 <param name="max_discard_fraction" value="0.01"/>
72 <param name="sample_alias" value="null"/>
73 <param name="library_name" value="null"/>
74 <param name="sort_order" value="coordinate"/>
75 <param name="validation_stringency" value="LENIENT"/>
76 <output name="outFile" file="picard_RevertSam_test1.bam" ftype="bam" lines_diff="2"/>
77 </test>
78 </tests>
79
80 <stdio>
81 <exit_code range="1:" level="fatal"/>
82 </stdio>
83
84 <help>
85
86 **Purpose**
87
88 Reverts SAM or BAM files to a previous state by removing certain types of information and/or substituting in the original quality scores when available.
89
90 @dataset_collections@
91
92 @description@
93
94 SORT_ORDER=SortOrder
95 SO=SortOrder The sort order to create the reverted output file with. Default value: queryname.
96 Possible values: {unsorted, queryname, coordinate}
97
98 RESTORE_ORIGINAL_QUALITIES=Boolean
99 OQ=Boolean True to restore original qualities from the OQ field to the QUAL field if available.
100 Default value: true. Possible values: {true, false}
101
102 REMOVE_DUPLICATE_INFORMATION=Boolean
103 Remove duplicate read flags from all reads. Note that if this is true and
104 REMOVE_ALIGNMENT_INFORMATION==false, the output may have the unusual but sometimes
105 desirable trait of having unmapped reads that are marked as duplicates. Default value:
106 true. Possible values: {true, false}
107
108 REMOVE_ALIGNMENT_INFORMATION=Boolean
109 Remove all alignment information from the file. Default value: true. TPossible values: {true, false}
110
111 ATTRIBUTE_TO_CLEAR=String When removing alignment information, the set of optional tags to remove. This option may
112 be specified 0 or more times.
113
114 SANITIZE=Boolean WARNING: This option is potentially destructive. If enabled will discard reads in order
115 to produce a consistent output BAM. Reads discarded include (but are not limited to)
116 paired reads with missing mates, duplicated records, records with mismatches in length of
117 bases and qualities. This option can only be enabled if the output sort order is
118 queryname and will always cause sorting to occur. Possible values: {true, false}
119
120 MAX_DISCARD_FRACTION=Double If SANITIZE=true and higher than MAX_DISCARD_FRACTION reads are discarded due to
121 sanitization thenthe program will exit with an Exception instead of exiting cleanly.
122 Output BAM will still be valid. Default value: 0.01.
123
124 SAMPLE_ALIAS=String
125 ALIAS=String The sample alias to use in the reverted output file. This will override the existing
126 sample alias in the file and is used only if all the read groups in the input file have
127 the same sample alias Default value: null.
128
129 LIBRARY_NAME=String
130 LIB=String The library name to use in the reverted output file. This will override the existing
131 sample alias in the file and is used only if all the read groups in the input file have
132 the same sample alias Default value: null.
133
134 @more_info@
135
136 </help>
137 </tool>
138
139