Mercurial > repos > wolma > mimodd_core
comparison bamsort.xml @ 0:aa82b2e54055 draft
planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit b36048cd608ede0ec6f6559648525c9350caae34-dirty
author | wolma |
---|---|
date | Sat, 11 Nov 2017 18:19:22 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:aa82b2e54055 |
---|---|
1 <tool id="mimodd_sort" name="MiModD Sort" version="@MIMODD_WRAPPER_VERSION@"> | |
2 <description>takes a SAM/BAM dataset and generates a coordinate/name-sorted copy</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <expand macro="stdio" /> | |
8 <expand macro="version_command" /> | |
9 <command> | |
10 mimodd sort '$input.ifile' | |
11 -o '$ofile' --iformat $input.iformat --oformat $oformat $by_name | |
12 </command> | |
13 | |
14 <inputs> | |
15 <conditional name="input"> | |
16 <param name="iformat" type="select" label="Input data format"> | |
17 <option value="bam">bam</option> | |
18 <option value="sam">sam</option> | |
19 </param> | |
20 <when value="bam"> | |
21 <param name="ifile" type="data" format="bam" | |
22 label="BAM input dataset to sort" /> | |
23 </when> | |
24 <when value="sam"> | |
25 <param name="ifile" type="data" format="sam" | |
26 label="SAM input dataset to sort" /> | |
27 </when> | |
28 </conditional> | |
29 <param name="oformat" type="select" label="Output format for the sorted data"> | |
30 <option value="bam">bam</option> | |
31 <option value="sam">sam</option> | |
32 </param> | |
33 <param name="by_name" type="boolean" truevalue="-n" falsevalue="" checked="false" | |
34 label="Sort by read names instead of coordinates" | |
35 help="A less common option, but necessary, e.g., if you want to re-align coordinate sorted paired-end reads with the MiModD Read Alignment Tool or other NGS mapping tools." /> | |
36 </inputs> | |
37 | |
38 <outputs> | |
39 <data name="ofile" format="bam" | |
40 label="Sorted output from MiModd ${tool.name} on ${on_string}"> | |
41 <change_format> | |
42 <when input="oformat" value="sam" format="sam" /> | |
43 </change_format> | |
44 </data> | |
45 </outputs> | |
46 | |
47 <tests> | |
48 <test> | |
49 <conditional name="input"> | |
50 <param name="iformat" value="sam" /> | |
51 <param name="ifile" value="header_only.sam" /> | |
52 </conditional> | |
53 <param name="oformat" value="bam" /> | |
54 <assert_command> | |
55 <not_has_text text="-n" /> | |
56 </assert_command> | |
57 <output name="ofile" ftype="bam" file="so_coordinate.bam" /> | |
58 </test> | |
59 <test> | |
60 <conditional name="input"> | |
61 <param name="iformat" value="bam" /> | |
62 <param name="ifile" value="header_only.bam" /> | |
63 </conditional> | |
64 <param name="oformat" value="sam" /> | |
65 <param name="by_name" value="true" /> | |
66 <assert_command> | |
67 <has_text text=" -n" /> | |
68 </assert_command> | |
69 <output name="ofile" ftype="sam" file="so_queryname.sam" /> | |
70 </test> | |
71 </tests> | |
72 | |
73 <help><![CDATA[ | |
74 .. class:: infomark | |
75 | |
76 **What it does** | |
77 | |
78 The tool sorts an aligned reads input dataset, typically by the reference | |
79 genome coordinates that the reads have been mapped to. | |
80 | |
81 Coordinate-sorted input files are expected by most downstream MiModD tools, but | |
82 note that the *MiModD Read Alignment* produces coordinate-sorted output by | |
83 default and it is only necessary to sort files that come from other sources or | |
84 from *MiModD Read Alignment* jobs with a custom sort order. | |
85 | |
86 The option *Sort by read names instead of coordinates* is useful if you want to | |
87 re-align coordinate-sorted paired-end data. In *paired-end mode*, the | |
88 *MiModD Read Alignment* tool expects the reads in the input file to be arranged | |
89 in read pairs, *i.e.*, the forward read information of a pair must be followed | |
90 immediately by its reverse mate information, which is typically not the case in | |
91 coordinate-sorted data. Resorting such data by read names fixes this problem. | |
92 | |
93 @HELP_FOOTER@ | |
94 ]]></help> | |
95 <expand macro="citations" /> | |
96 </tool> | |
97 |