comparison picard_RevertSam.xml @ 33:3f254c5ced1d draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/picard commit 9ecbbb878d68a980ba35a90865e524c723ca3ed8
author iuc
date Sun, 03 Mar 2024 16:06:11 +0000
parents f9242e01365a
children
comparison
equal deleted inserted replaced
32:f9242e01365a 33:3f254c5ced1d
1 <tool name="RevertSam" id="picard_RevertSam" version="@TOOL_VERSION@.@WRAPPER_VERSION@"> 1 <tool name="RevertSam" id="picard_RevertSam" version="@TOOL_VERSION@.@WRAPPER_VERSION@" profile="@PROFILE@">
2 <description>revert SAM/BAM datasets to a previous state</description> 2 <description>revert SAM/BAM datasets to a previous state</description>
3 <macros> 3 <macros>
4 <import>picard_macros.xml</import> 4 <import>picard_macros.xml</import>
5 <token name="@WRAPPER_VERSION@">1</token> 5 <token name="@WRAPPER_VERSION@">0</token>
6 </macros> 6 </macros>
7 <expand macro="requirements" /> 7 <expand macro="requirements"/>
8 <command detect_errors="exit_code"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
9 @java_options@ 9 @java_options@
10 picard 10 picard RevertSam
11 RevertSam
12 11
13 INPUT='$inputFile' 12 --INPUT '$inputFile'
14 OUTPUT="${outFile}" 13 --OUTPUT '${outFile}'
15 14
16 RESTORE_ORIGINAL_QUALITIES="${restore_original_qualities}" 15 --RESTORE_ORIGINAL_QUALITIES '${restore_original_qualities}'
17 REMOVE_DUPLICATE_INFORMATION="${remove_duplicate_information}" 16 --REMOVE_DUPLICATE_INFORMATION '${remove_duplicate_information}'
18 REMOVE_ALIGNMENT_INFORMATION="${remove_alignment_information}" 17 --REMOVE_ALIGNMENT_INFORMATION '${remove_alignment_information}'
19 18
20 #for $attribute_to_clear in $attributes_to_clear: 19 #for $attribute_to_clear in $attributes_to_clear:
21 ATTRIBUTE_TO_CLEAR="${attribute_to_clear.attribute}" 20 --ATTRIBUTE_TO_CLEAR '${attribute_to_clear.attribute}'
22 #end for 21 #end for
23 22
24 SANITIZE="${sanitize}" 23 --SANITIZE '${sanitize}'
25 MAX_DISCARD_FRACTION="${max_discard_fraction}" 24 --MAX_DISCARD_FRACTION '${max_discard_fraction}'
26 SAMPLE_ALIAS="${sample_alias}" 25 --SAMPLE_ALIAS '${sample_alias}'
27 LIBRARY_NAME="${library_name}" 26 --LIBRARY_NAME '${library_name}'
28 27
29 SORT_ORDER="${sort_order}" 28 --SORT_ORDER '${sort_order}'
30 VALIDATION_STRINGENCY="${validation_stringency}" 29 --VALIDATION_STRINGENCY '${validation_stringency}'
31 QUIET=true 30 --QUIET true
32 VERBOSITY=ERROR 31 --VERBOSITY ERROR
33 32
34 ]]></command> 33 ]]></command>
35 <inputs> 34 <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"/> 35 <param name="inputFile" type="data" format="sam,bam" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset" multiple="True"/>
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"/> 36 <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"/> 37 <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"/> 38 <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"> 39 <repeat name="attributes_to_clear" title="Clear attribute" min="0" help="You can provide multiple attributes">
41 <param name="attribute" type="text" label="When removing alignment information, specify optional tags to remove (e.g., XM)" help="ATTRIBUTE_TO_CLEAR"/> 40 <param name="attribute" type="text" label="When removing alignment information, specify optional tags to remove (e.g., XM)" help="ATTRIBUTE_TO_CLEAR"/>
42 </repeat> 41 </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"/> 42 <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"/> 43 <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" 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"/> 44 <param name="sample_alias" type="text" 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" 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"/> 45 <param name="library_name" type="text" 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"> 46 <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> 47 <option value="coordinate" selected="True">Coordinate</option>
49 <option value="queryname">Queryname</option> 48 <option value="queryname">Queryname</option>
50 <option value="unsorted">Unsorted</option> 49 <option value="unsorted">Unsorted</option>
51 </param> 50 </param>
52 <expand macro="VS" /> 51 <expand macro="VS"/>
53 52 </inputs>
54 </inputs> 53 <outputs>
55 54 <data format="bam" name="outFile" label="${tool.name} on ${on_string}: Reverted BAM dataset"/>
56 <outputs> 55 </outputs>
57 <data format="bam" name="outFile" label="${tool.name} on ${on_string}: Reverted BAM dataset"/> 56 <tests>
58 </outputs> 57 <test>
59 58 <param name="inputFile" value="picard_RevertSam.bam" ftype="bam"/>
60 <tests> 59 <param name="restore_original_qualities" value="True"/>
61 <test> 60 <param name="remove_duplicate_information" value="True"/>
62 <param name="inputFile" value="picard_RevertSam.bam" ftype="bam"/> 61 <param name="remove_alignment_information" value="True"/>
63 <param name="restore_original_qualities" value="True"/> 62 <param name="attribute" value="XM"/>
64 <param name="remove_duplicate_information" value="True"/> 63 <param name="sanitize" value="False"/>
65 <param name="remove_alignment_information" value="True"/> 64 <param name="max_discard_fraction" value="0.01"/>
66 <param name="attribute" value="XM"/> 65 <param name="sample_alias" value="null"/>
67 <param name="sanitize" value="False"/> 66 <param name="library_name" value="null"/>
68 <param name="max_discard_fraction" value="0.01"/> 67 <param name="sort_order" value="coordinate"/>
69 <param name="sample_alias" value="null"/> 68 <param name="validation_stringency" value="LENIENT"/>
70 <param name="library_name" value="null"/> 69 <output name="outFile" file="picard_RevertSam_test1.bam" ftype="bam" lines_diff="4"/>
71 <param name="sort_order" value="coordinate"/> 70 </test>
72 <param name="validation_stringency" value="LENIENT"/> 71 </tests>
73 <output name="outFile" file="picard_RevertSam_test1.bam" ftype="bam" lines_diff="4"/> 72 <help>
74 </test>
75 </tests>
76
77
78 <help>
79 73
80 **Purpose** 74 **Purpose**
81 75
82 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. 76 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.
83 77
126 the same sample alias Default value: null. 120 the same sample alias Default value: null.
127 121
128 @more_info@ 122 @more_info@
129 123
130 </help> 124 </help>
131 <expand macro="citations" /> 125 <expand macro="citations"/>
132 </tool> 126 </tool>