0
|
1 <tool id="samtools_rmdup" name="rmdup" version="1.0.0">
|
|
2 <requirements>
|
|
3 <requirement type="package" version="0.1.18">samtools</requirement>
|
|
4 </requirements>
|
|
5 <description>remove PCR duplicates</description>
|
|
6 <command>samtools rmdup
|
|
7 #if str( $bam_paired_end_type.bam_paired_end_type_selector ) == "PE"
|
|
8 ${bam_paired_end_type.force_se}
|
|
9 #else:
|
|
10 -s
|
|
11 #end if
|
|
12 "$input1" "$output1"
|
|
13 2>&1 || echo "Error running samtools rmdup." >&2
|
|
14 </command>
|
|
15 <inputs>
|
|
16 <param name="input1" type="data" format="bam" label="BAM File" />
|
|
17
|
|
18 <conditional name="bam_paired_end_type">
|
|
19 <param name="bam_paired_end_type_selector" type="select" label="Is data paired-end">
|
|
20 <option value="PE" selected="True">BAM is paired-end</option>
|
|
21 <option value="SE">BAM is single-end</option>
|
|
22 </param>
|
|
23 <when value="PE">
|
|
24 <param name="force_se" type="boolean" label="Treat as single-end" help="(-S)" truevalue="-S" falsevalue="" checked="False"/>
|
|
25 </when>
|
|
26 <when value="SE" /> <!-- No extra parameters here -->
|
|
27 </conditional>
|
|
28
|
|
29 </inputs>
|
|
30 <outputs>
|
|
31 <data name="output1" format="bam" />
|
|
32 </outputs>
|
|
33 <tests>
|
|
34 <test>
|
|
35 <param name="input1" value="1.bam" ftype="bam" />
|
|
36 <param name="bam_paired_end_type_selector" value="SE" />
|
|
37 <output name="output1" file="1.bam" ftype="bam" sort="True"/>
|
|
38 </test>
|
|
39 <test>
|
|
40 <param name="input1" value="1.bam" ftype="bam" />
|
|
41 <param name="bam_paired_end_type_selector" value="PE" />
|
|
42 <param name="force_se" value="True" />
|
|
43 <output name="output1" file="1.bam" ftype="bam" sort="True"/>
|
|
44 </test>
|
|
45 <test>
|
|
46 <param name="input1" value="1.bam" ftype="bam" />
|
|
47 <param name="bam_paired_end_type_selector" value="PE" />
|
|
48 <param name="force_se" />
|
|
49 <output name="output1" file="1.bam" ftype="bam" sort="True" />
|
|
50 </test>
|
|
51 </tests>
|
|
52 <help>
|
|
53
|
|
54 **What it does**
|
|
55
|
|
56 This tool uses the SAMTools_ toolkit to remove potential PCR duplicates: if multiple read pairs have identical external coordinates, only retain the pair with highest mapping quality. In the paired-end mode, this command ONLY works with FR orientation and requires ISIZE is correctly set. It does not work for unpaired reads (e.g. two ends mapped to different chromosomes or orphan reads).
|
|
57
|
|
58 .. _SAMTools: http://samtools.sourceforge.net/samtools.shtml
|
|
59
|
|
60 ------
|
|
61
|
|
62 **Citation**
|
|
63
|
|
64 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>`_
|
|
65
|
|
66 If you use this tool in Galaxy, please cite Blankenberg D, et al. *In preparation.*
|
|
67
|
|
68 </help>
|
|
69 </tool>
|