comparison bamsort.xml @ 0:6231ae8f87b8

Uploaded
author wolma
date Wed, 11 Feb 2015 08:29:02 -0500
parents
children a548b3c6ed00
comparison
equal deleted inserted replaced
-1:000000000000 0:6231ae8f87b8
1 <tool id="bamsort" name="Sort BAM file">
2 <description>Sort a BAM file by coordinates (or names) of the mapped reads</description>
3 <version_command>mimodd version -q</version_command>
4 <command>
5 mimodd sort "$inputfile" -o "$output" --oformat $oformat $by_name
6 </command>
7
8 <inputs>
9 <param name="inputfile" type="data" format="bam" label="Input file to sort" />
10 <param name="by_name" type="boolean" truevalue = "-n" falsevalue ="" label="Sort by read names instead of coordinates" checked = "false" 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." />
11 <param name="oformat" type="boolean" truevalue = "sam" falsevalue = "bam" label = "Output in uncompressed SAM format" checked = "false" />
12 </inputs>
13
14 <outputs>
15 <data name="output" format="bam" label="Sorted output from MiModd ${tool.name} on ${on_string}">
16 <change_format>
17 <when input="oformat" value="sam" format="sam" />
18 </change_format>
19 </data>
20 </outputs>
21
22 <help>
23 .. class:: infomark
24
25 **What it does**
26
27 The tool sorts a BAM file of aligned reads, typically by the reference genome coordinates that the reads have been mapped to.
28
29 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.
30
31 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.
32
33 </help>
34 </tool>
35