comparison ivar_variants.xml @ 0:12d66d0d05ac 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:45:57 -0400
parents
children 147465efa99c
comparison
equal deleted inserted replaced
-1:000000000000 0:12d66d0d05ac
1 <tool id="ivar_variants" name="ivar variants" version="@VERSION@+galaxy0">
2 <description>Call variants from aligned BAM file</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 '$ref' ref.fa &&
10 ln -s '$input_bam' sorted.bam &&
11 samtools mpileup -A -d 0 --reference ref.fa -B -Q 0 sorted.bam | ivar variants
12 -p variants
13 -q $min_qual
14 -t $min_freq
15 ]]> </command>
16 <inputs>
17 <param name="input_bam" type="data" format="bam" label="Bam file" help="Aligned reads, to trim primers and quality"/>
18 <param name="ref" type="data" format="fasta" label="Reference"/>
19 <param name="min_qual" argument="-q" type="integer" min="1" value="20" label="Minimum quality score threshold to count base"/>
20 <param name="min_freq" argument="-t" type="float" min="0" max="1" value="0.03" label="Minimum frequency threshold"/>
21 </inputs>
22 <outputs>
23 <data name="output_variants" format="tabular" label="${tool.name} on ${on_string}" from_work_dir="variants.tsv"/>
24 </outputs>
25 <tests>
26 <test>
27 <param name="input_bam" value="zika/Z52_a.masked.sorted.bam" />
28 <param name="ref" value="zika/db/PRV.fa" />
29 <output name="output_variants" file="zika/Z52_a.tsv" lines_diff="10"/>
30 </test>
31 </tests>
32 <help><![CDATA[
33 iVar uses the output of the samtools mpileup command to call variants -
34 single nucleotide variants(SNVs) and indels. In order to call variants
35 correctly, the reference file used for alignment must be passed to iVar
36 using the -r flag. The output of samtools pileup is piped into ivar variants
37 to generate a .tsv file with the variants. There are two parameters that can
38 be set for variant calling using iVar - minimum quality(Default: 20) and
39 minimum frequency(Default: 0.03). Minimum quality is the minimum quality for
40 a base to be counted towards the ungapped depth to canculate iSNV frequency
41 at a given position. For insertions, the quality metric is discarded and the
42 mpileup depth is used directly. Minimum frequency is the minimum frequency
43 required for a SNV or indel to be reported.
44
45 Documentation can be found at `<https://andersen-lab.github.io/ivar/html/manualpage.html>`_.
46 ]]> </help>
47 <expand macro="citations" />
48 </tool>