annotate bamsort.xml @ 24:3accdbe6503b draft default tip

Deleted selected files
author wolma
date Thu, 21 Jul 2016 03:56:19 -0400
parents 5db0545b9004
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
1 <tool id="bamsort" name="Sort BAM file" version="0.1.7.3">
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
2 <description>Sort a BAM file by coordinates (or names) of the mapped reads</description>
2
72d20758ba2c final upload
wolma
parents: 1
diff changeset
3 <macros>
72d20758ba2c final upload
wolma
parents: 1
diff changeset
4 <import>toolshed_macros.xml</import>
72d20758ba2c final upload
wolma
parents: 1
diff changeset
5 </macros>
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
6 <expand macro="requirements" />
21
c46406466625 Uploaded
wolma
parents: 9
diff changeset
7 <version_command>python3 -m MiModD version -q</version_command>
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
8 <command>
21
c46406466625 Uploaded
wolma
parents: 9
diff changeset
9 python3 -m MiModD sort "$input.ifile" -o "$output" --iformat $input.iformat --oformat $oformat $by_name
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
10 </command>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
11
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
12 <inputs>
5
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
13 <conditional name="input">
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
14 <param label="Input data format" name="iformat" type="select">
5
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
15 <option value="bam">bam</option>
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
16 <option value="sam">sam</option>
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
17 </param>
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
18 <when value="bam">
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
19 <param format="bam" label="BAM input file to sort" name="ifile" type="data" />
5
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
20 </when>
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
21 <when value="sam">
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
22 <param format="sam" label="SAM input file to sort" name="ifile" type="data" />
5
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
23 </when>
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
24 </conditional>
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
25 <param label="Output format for the sorted data" name="oformat" type="select">
5
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
26 <option value="bam">bam</option>
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
27 <option value="sam">sam</option>
bdd1995c9e66 upgrade to mimodd version 0.1.6.1
Wolfgang Maier
parents: 2
diff changeset
28 </param>
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
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" />
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
30 </inputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
31
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
32 <outputs>
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
33 <data format="bam" label="Sorted output from MiModd ${tool.name} on ${on_string}" name="output">
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
34 <change_format>
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
35 <when format="sam" input="oformat" value="sam" />
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
36 </change_format>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
37 </data>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
38 </outputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
39
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
40 <help>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
41 .. class:: infomark
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
42
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
43 **What it does**
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
44
6231ae8f87b8 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.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
46
6231ae8f87b8 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.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
48
6231ae8f87b8 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.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
50
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
51 </help>
23
5db0545b9004 update to v0.1.7.3
wolma
parents: 21
diff changeset
52 </tool>