|
4
|
1 <tool id="samtools_sort" name="sort" version="1.0.3">
|
|
3
|
2 <requirements>
|
|
4
|
3 <requirement type="package" version="1.1">samtools</requirement>
|
|
3
|
4 </requirements>
|
|
|
5 <description>a BAM file</description>
|
|
5
|
6 <version_command>samtools --version | head -n 1 | awk '{ print $2 }'</version_command>
|
|
|
7 <command>samtools sort $sort_mode "${input1}" -o "${output1}" -O bam -T dataset</command>
|
|
|
8 <stdio>
|
|
|
9 <exit_code range="1:" level="fatal" description="Error" />
|
|
|
10 </stdio>
|
|
3
|
11 <inputs>
|
|
|
12 <param name="input1" type="data" format="bam" label="BAM File" />
|
|
|
13 <param name="sort_mode" type="select" label="Sort by ">
|
|
|
14 <option value="" selected="True">Chromosomal coordinates</option>
|
|
|
15 <option value="-n">Read names</option>
|
|
|
16 </param>
|
|
|
17 </inputs>
|
|
|
18 <outputs>
|
|
|
19 <data name="output1" format="bam" />
|
|
|
20 </outputs>
|
|
|
21 <tests>
|
|
|
22 <test>
|
|
|
23 <param name="input1" value="1.bam" ftype="bam" />
|
|
|
24 <output name="output1" file="1_sort.bam" ftype="bam" sort="True"/>
|
|
|
25 </test>
|
|
|
26 </tests>
|
|
|
27 <help>
|
|
|
28
|
|
|
29 **What it does**
|
|
|
30
|
|
|
31 This tool uses the SAMTools_ toolkit to sort alignments by leftmost coordinates or read names.
|
|
|
32
|
|
|
33 .. _SAMTools: http://samtools.sourceforge.net/samtools.shtml
|
|
|
34
|
|
|
35 ------
|
|
|
36
|
|
|
37 **Citation**
|
|
|
38
|
|
|
39 For the underlying tool, please cite `Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R; 1000 Genome Project Data Processing Subgroup. The Sequence Alignment/Map format and SAMtools. Bioinformatics. 2009 Aug 15;25(16):2078-9. <http://www.ncbi.nlm.nih.gov/pubmed/19505943>`_
|
|
|
40
|
|
|
41 If you use this tool in Galaxy, please cite Blankenberg D, et al. *In preparation.*
|
|
|
42
|
|
|
43 </help>
|
|
|
44 </tool>
|