comparison ivar_trim.xml @ 0:8858fa037a15 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ivar/ commit 4b0b7fb6c79dcd437392a496a99301d124c9f1dd"
author iuc
date Mon, 30 Mar 2020 07:31:25 -0400
parents
children cb903c9dc33d
comparison
equal deleted inserted replaced
-1:000000000000 0:8858fa037a15
1 <tool id="ivar_trim" name="ivar trim" version="@VERSION@+galaxy0">
2 <description>Trim reads in aligned BAM</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <expand macro="version_command" />
8 <command detect_errors="exit_code"><![CDATA[
9 ln -s '$input_bed' bed.bed &&
10 ln -s '$input_bam' sorted.bam &&
11 ivar trim
12 -i sorted.bam
13 -b bed.bed
14 -m $min_len
15 -q $min_qual
16 -s $window_width
17 $inc_primers
18 -p trimmed &&
19 samtools sort -@ \${GALAXY_SLOTS:-1} -o trimmed.sorted.bam trimmed.bam &&
20 samtools index -@ \${GALAXY_SLOTS:-1} trimmed.sorted.bam
21 ]]> </command>
22 <inputs>
23 <param name="input_bam" argument="-i" type="data" format="bam" label="Bam file" help="Aligned reads, to trim primers and quality"/>
24 <param name="input_bed" argument="-b" type="data" format="bed" label="BED file with primer sequences and positions"/>
25 <param name="min_len" argument="-m" type="integer" min="0" value="30" label="Minimum length of read to retain after trimming"/>
26 <param name="min_qual" argument="-q" type="integer" min="0" value="20" label="Minimum quality threshold for sliding window to pass"/>
27 <param name="window_width" argument="-s" type="integer" min="0" value="4" label="Width of sliding window"/>
28 <param name="inc_primers" argument="-e" type="boolean" truevalue="-e" falsevalue="" checked="false" label="Include reads with no primers"/>
29 </inputs>
30 <outputs>
31 <data name="output_bam" format="bam" label="${tool.name} on ${on_string} Trimmed bam" from_work_dir="trimmed.sorted.bam"/>
32 </outputs>
33 <tests>
34 <!-- #1: SARS-Cov data-->
35 <test>
36 <param name="input_bam" value="covid19/PC00101P_sub.sorted.bam" />
37 <param name="input_bed" value="covid19/ARTIC-V1.bed" />
38 <param name="inc_primers" value="true" />
39 <output name="output_bam" file="covid19/PC00101P_sub.sorted.bam" compare="sim_size" delta="300000"/>
40 </test>
41 <!-- #1: Zika data-->
42 <test>
43 <param name="input_bam" value="zika/Z52_a.sorted.bam" />
44 <param name="input_bed" value="zika/db/zika_primers.bed" />
45 <output name="output_bam" file="zika/Z52_a.trimmed.sorted.bam" compare="sim_size" delta="100000"/>
46 </test>
47 <test>
48 <param name="input_bam" value="zika/Z52_b.sorted.bam" />
49 <param name="input_bed" value="zika/db/zika_primers.bed" />
50 <output name="output_bam" file="zika/Z52_b.trimmed.sorted.bam" compare="sim_size" delta="100000"/>
51 </test>
52 </tests>
53 <help><![CDATA[
54 iVar uses primer positions supplied in a BED file to soft clip primer
55 sequences from an aligned and sorted BAM file. Following this, the reads are
56 trimmed based on a quality threshold(Default: 20). To do the quality
57 trimming, iVar uses a sliding window approach(Default: 4). The windows
58 slides from the 5' end to the 3' end and if at any point the average base
59 quality in the window falls below the threshold, the remaining read is soft
60 clipped. If after trimming, the length of the read is greater than the
61 minimum length specified(Default: 30), the read is written to the new
62 trimmed BAM file
63
64 Documentation can be found at `<https://andersen-lab.github.io/ivar/html/manualpage.html>`_.
65 ]]> </help>
66 <expand macro="citations" />
67 </tool>