Mercurial > repos > refinery-platform > picard
comparison picard_MergeSamFiles.xml @ 0:2e42e3c01fcf draft
planemo upload for repository https://github.com/scottx611x/picard commit 03c50422525fa433ef6811e1dcc7e3770fabcc29-dirty
| author | refinery-platform |
|---|---|
| date | Mon, 04 Dec 2017 09:11:01 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:2e42e3c01fcf |
|---|---|
| 1 <tool name="MergeSamFiles" id="picard_MergeSamFiles" version="@TOOL_VERSION@.0"> | |
| 2 <description>merges multiple SAM/BAM datasets into one</description> | |
| 3 <macros> | |
| 4 <import>picard_macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements" /> | |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 8 @java_options@ | |
| 9 #for $index, $listCollection in enumerate($inputList): | |
| 10 && | |
| 11 picard | |
| 12 MergeSamFiles | |
| 13 | |
| 14 #for $element in $listCollection: | |
| 15 INPUT="${element}" | |
| 16 #end for | |
| 17 | |
| 18 OUTPUT="${'merged{}.bam'.format($index)}" | |
| 19 MERGE_SEQUENCE_DICTIONARIES="${merge_sequence_dictionaries}" | |
| 20 ASSUME_SORTED="${assume_sorted}" | |
| 21 #for $element in $comments: | |
| 22 COMMENT="${element.comment}" | |
| 23 #end for | |
| 24 USE_THREADING=true | |
| 25 SORT_ORDER=coordinate | |
| 26 VALIDATION_STRINGENCY="${validation_stringency}" | |
| 27 QUIET=true | |
| 28 VERBOSITY=ERROR | |
| 29 #end for | |
| 30 ]]></command> | |
| 31 <inputs> | |
| 32 <param format="sam,bam" name="inputList" type="data_collection" collection_type="list:list" label="Select SAM/BAM dataset collection" help="If empty, upload or import a SAM/BAM dataset"/> | |
| 33 <param name="merge_sequence_dictionaries" type="boolean" label="Merge the sequence dictionaries of the datasets being merged" help="MERGE_SEQUENCE_DICTIONARIES; default=False"/> | |
| 34 <param name="assume_sorted" type="boolean" label="Assume the input file is already sorted" help="ASSUME_SORTED; default=False"/> | |
| 35 | |
| 36 <repeat name="comments" title="Comment" min="0" help="You can provide multiple comments"> | |
| 37 <param name="comment" type="text" label="Add this comment to BAM dataset" help="COMMENT"/> | |
| 38 </repeat> | |
| 39 | |
| 40 <expand macro="VS" /> | |
| 41 | |
| 42 </inputs> | |
| 43 | |
| 44 <outputs> | |
| 45 <data format="bam" name="merged"> | |
| 46 <discover_datasets pattern="__designation_and_ext__" visible="true" /> | |
| 47 </data> | |
| 48 </outputs> | |
| 49 | |
| 50 <tests> | |
| 51 <test> | |
| 52 <param name="inputList"> | |
| 53 <collection type="list:list"> | |
| 54 <element name="list 1"> | |
| 55 <collection type="list"> | |
| 56 <element name="l1_input1" value="picard_MergeSamFiles_input1.bam" /> | |
| 57 <element name="l1_input2" value="picard_MergeSamFiles_input2.bam" /> | |
| 58 <element name="l1_input3" value="picard_MergeSamFiles_input3.bam" /> | |
| 59 </collection> | |
| 60 </element> | |
| 61 <element name="list 2"> | |
| 62 <collection type="list"> | |
| 63 <element name="l2_input1" value="picard_MergeSamFiles_input1.bam" /> | |
| 64 <element name="l2_input2" value="picard_MergeSamFiles_input2.bam" /> | |
| 65 <element name="l2_input3" value="picard_MergeSamFiles_input3.bam" /> | |
| 66 </collection> | |
| 67 </element> | |
| 68 </collection> | |
| 69 </param> | |
| 70 <param name="assume_sorted" value="False"/> | |
| 71 <param name="merge_sequence_dictionaries" value="False"/> | |
| 72 <param name="validation_stringency" value="LENIENT"/> | |
| 73 <output name="merged0" ftype="bam"> | |
| 74 <assert_contents> | |
| 75 <has_text text=""/> | |
| 76 </assert_contents> | |
| 77 </output> | |
| 78 <output name="merged1" ftype="bam"> | |
| 79 <assert_contents> | |
| 80 <has_text text=""/> | |
| 81 </assert_contents> | |
| 82 </output> | |
| 83 </test> | |
| 84 </tests> | |
| 85 | |
| 86 <stdio> | |
| 87 <exit_code range="1:" level="fatal"/> | |
| 88 </stdio> | |
| 89 | |
| 90 <help> | |
| 91 | |
| 92 **Purpose** | |
| 93 | |
| 94 Merges multiple SAM/BAM datasets into one. | |
| 95 | |
| 96 @dataset_collections@ | |
| 97 | |
| 98 @description@ | |
| 99 | |
| 100 ASSUME_SORTED=Boolean | |
| 101 AS=Boolean If true, assume that the input files are in the same sort order as the requested output | |
| 102 sort order, even if their headers say otherwise. Default value: false. This option can | |
| 103 be set to 'null' to clear the default value. Possible values: {true, false} | |
| 104 | |
| 105 MERGE_SEQUENCE_DICTIONARIES=Boolean | |
| 106 MSD=Boolean Merge the sequence dictionaries Default value: false. This option can be set to 'null' | |
| 107 to clear the default value. Possible values: {true, false} | |
| 108 | |
| 109 COMMENT=String | |
| 110 CO=String Comment(s) to include in the merged output file's header. This option may be specified 0 | |
| 111 or more times. | |
| 112 | |
| 113 | |
| 114 @more_info@ | |
| 115 | |
| 116 </help> | |
| 117 </tool> |
