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