2
|
1 <tool id="samtools_rmdup" name="RmDup" version="2.0">
|
0
|
2 <description>remove PCR duplicates</description>
|
2
|
3 <macros>
|
|
4 <import>macros.xml</import>
|
|
5 </macros>
|
|
6 <expand macro="requirements"></expand>
|
|
7 <expand macro="stdio"></expand>
|
|
8 <expand macro="version_command"></expand>
|
0
|
9 <command>samtools rmdup
|
|
10 #if str( $bam_paired_end_type.bam_paired_end_type_selector ) == "PE"
|
|
11 ${bam_paired_end_type.force_se}
|
|
12 #else:
|
|
13 -s
|
|
14 #end if
|
|
15 "$input1" "$output1"
|
|
16 </command>
|
|
17 <inputs>
|
|
18 <param name="input1" type="data" format="bam" label="BAM File" />
|
|
19
|
|
20 <conditional name="bam_paired_end_type">
|
2
|
21 <param name="bam_paired_end_type_selector" type="select" label="Is this paired-end or single end data">
|
0
|
22 <option value="PE" selected="True">BAM is paired-end</option>
|
2
|
23 <option value="SE">BAM is single-end (-s)</option>
|
0
|
24 </param>
|
|
25 <when value="PE">
|
2
|
26 <param name="force_se" type="boolean" label="Treat as single-end" help="-S" truevalue="-S" falsevalue="" checked="False"/>
|
0
|
27 </when>
|
|
28 <when value="SE" /> <!-- No extra parameters here -->
|
|
29 </conditional>
|
|
30
|
|
31 </inputs>
|
|
32 <outputs>
|
|
33 <data name="output1" format="bam" />
|
|
34 </outputs>
|
|
35 <tests>
|
|
36 <test>
|
2
|
37 <param name="input1" value="samtools-rmdup-input1.bam" ftype="bam" />
|
0
|
38 <param name="bam_paired_end_type_selector" value="PE" />
|
|
39 <param name="force_se" />
|
2
|
40 <output name="output1" file="samtools-rmdup-test1.bam" ftype="bam" sort="True" />
|
0
|
41 </test>
|
|
42 </tests>
|
|
43 <help>
|
|
44
|
|
45 **What it does**
|
|
46
|
2
|
47 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). This tool has the following parameters::
|
0
|
48
|
2
|
49 -s rmdup for SE reads
|
|
50 -S treat PE reads as SE in rmdup (force -s)
|
0
|
51
|
|
52 </help>
|
2
|
53 <expand macro="citations"></expand>
|
0
|
54 </tool>
|