annotate bamsort.xml @ 3:d6ec32ce882b draft default tip

Uploaded
author wolma
date Tue, 28 Mar 2017 04:34:04 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
1 <tool id="bamsort" name="Sort BAM file" version="0.1.7.3">
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
2 <description>Sort a BAM file by coordinates (or names) of the mapped reads</description>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
3 <macros>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
4 <import>toolshed_macros.xml</import>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
5 </macros>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
6 <expand macro="requirements" />
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
7 <version_command>mimodd version -q</version_command>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
8 <command>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
9 mimodd sort "$input.ifile" -o "$output" --iformat $input.iformat --oformat $oformat $by_name
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
10 </command>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
11
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
12 <inputs>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
13 <conditional name="input">
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
14 <param label="Input data format" name="iformat" type="select">
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
15 <option value="bam">bam</option>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
16 <option value="sam">sam</option>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
17 </param>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
18 <when value="bam">
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
19 <param format="bam" label="BAM input file to sort" name="ifile" type="data" />
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
20 </when>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
21 <when value="sam">
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
22 <param format="sam" label="SAM input file to sort" name="ifile" type="data" />
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
23 </when>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
24 </conditional>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
25 <param label="Output format for the sorted data" name="oformat" type="select">
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
26 <option value="bam">bam</option>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
27 <option value="sam">sam</option>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
28 </param>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
29 <param checked="false" falsevalue="" help="A less common option, but necessary, e.g., if you want to re-align sorted output from a previous run of the Snap Align Tool." label="Sort by read names instead of coordinates" name="by_name" truevalue="-n" type="boolean" />
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
30 </inputs>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
31
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
32 <outputs>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
33 <data format="bam" label="Sorted output from MiModd ${tool.name} on ${on_string}" name="output">
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
34 <change_format>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
35 <when format="sam" input="oformat" value="sam" />
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
36 </change_format>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
37 </data>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
38 </outputs>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
39
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
40 <help>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
41 .. class:: infomark
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
42
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
43 **What it does**
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
44
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
45 The tool sorts a BAM file of aligned reads, typically by the reference genome coordinates that the reads have been mapped to.
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
46
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
47 Coordinate-sorted input files are expected by most downstream MiModD tools, but note that the *SNAP Read Alignment* produces coordinate-sorted output by default and it is only necessary to sort files that come from other sources or from *SNAP Read Alignment* jobs with a custom sort order.
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
48
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
49 The option *Sort by read names instead of coordinates* is useful if you want to re-align coordinate-sorted paired-end data. In *paired-end mode*, the *SNAP Read Alignment* tool expects the reads in the input file to be arranged in read pairs, i.e., the forward read information of a pair must be followed immediately by its reverse mate information, which is typically not the case in coordinate-sorted files. Resorting such files by read names fixes this problem.
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
50
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
51 </help>
d6ec32ce882b Uploaded
wolma
parents:
diff changeset
52 </tool>