comparison callcodonvar.xml @ 0:1f1214983a1c draft default tip

planemo upload for repository https://github.com/phac-nml/quasitools commit 5a9e4c9a582828654893166caf20576f5e0c418e
author nml
date Mon, 20 Jun 2022 20:05:57 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1f1214983a1c
1 <tool id="callcodonvar" name="Codon Variants" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
2 <description>Identifies codon variants and non-synonymous/synonymous mutations</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <command detect_errors="exit_code"><![CDATA[
8
9 cat $input_genes &&
10
11 ln -s $input_bam '${input_bam.name}' &&
12 ln -s $input_bam.metadata.bam_index '${input_bam.name}.bai' &&
13
14 quasitools call codonvar '${input_bam.name}' $ref_file $offset $input_genes
15
16 #if $var_file:
17 $var_file
18 #end if
19
20 #if $error_rate:
21 -e $error_rate
22 #end if
23
24 -o output.csv
25
26 ]]></command>
27 <inputs>
28 <param name="input_bam" type="data" format="bam" optional="false" label="Bam file" />
29 <param name="ref_file" type="data" format="fasta" optional="false" label="Reference file" />
30 <param name="offset" type="integer" optional="false" label="Offset" min="0" value="0"/>
31 <param name="input_genes" type="data" format="bed" optional="false" label="Gene file" />
32 <param name="error_rate" type="float" optional="true" min="0" max="1" label="Error rate" value="0.0021" help="Estimated sequencing error rate. Defaults to 0.0021." />
33 <param name="var_file" type="data" format="vcf" optional="true" label="Variants file" help="Not required. If not supplied, a variants file will be generated using the input bam file." />
34 </inputs>
35 <outputs>
36 <data format="csv" name="output" from_work_dir="output.csv" />
37 </outputs>
38 <tests>
39 <test>
40 <param name="input_bam" value="align.bam" />
41 <param name="ref_file" value="hxb2_pol.fas" />
42 <param name="offset" value="1269"/>
43 <param name="input_genes" ftype="bed" value="hxb2_pol.bed" />
44 <output name="output" >
45 <assert_contents>
46 <has_text text="#gene,nt position (gene),nt start position,nt end position,ref codon,mutant codon,ref AA,mutant AA,coverage,mutant frequency,mutant type,NS count,S count" />
47 <has_text text="RT,1566-2885,1872,1874,aaa,aaC,K,N,154,7.79,NS,1.0000,0.0000" />
48 </assert_contents>
49 </output>
50 </test>
51 </tests>
52 <help><![CDATA[
53
54 Codon Variants
55 ==============
56
57 Call codon variants for a given BAM. A report is generated that details nucleotide variants within a
58 codon and the resulting AA variants. The report indicates whether the nucleotide variants correspond to
59 a synonymous or non-synonymous mutation.
60
61 ]]></help>
62 <expand macro="citations" />
63 </tool>