comparison callaavar.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="aavariants" name="Amino Acid Variants" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
2 <description>Identifies amino acid mutations</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <command detect_errors="exit_code"><![CDATA[
8
9 ln -s $input_bam '${input_bam.name}' &&
10 ln -s $input_bam.metadata.bam_index '${input_bam.name}.bai' &&
11
12 quasitools call aavar '${input_bam.name}' $ref_file $input_genes
13
14 #if $var_file:
15 $var_file
16 #end if
17
18 #if $mutation_db:
19 $mutation_db
20 #end if
21
22 #if $min_freq:
23 -f $min_freq
24 #end if
25
26 #if $error_rate:
27 -e $error_rate
28 #end if
29
30 -o output.vcf
31
32 ]]></command>
33 <inputs>
34 <param name="input_bam" type="data" format="bam" optional="false" label="Bam file" />
35 <param name="ref_file" type="data" format="fasta" optional="false" label="Reference file" />
36 <param name="input_genes" type="data" format="bed" optional="false" label="Gene file" />
37 <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." />
38 <param name="mutation_db" type="data" format="tsv" optional="true" label="Mutation DB" help="Not required. Defaults to HIV mutation database." />
39 <param name="min_freq" type="float" optional="true" min="0" max="1" label="Minimum frequency" value="0.01" help="The minimum required frequency. Defaults to 0.01." />
40 <param name="error_rate" type="float" optional="true" min="0" max="1" value="0.0021" label="Error rate" help="Estimated sequencing error rate. Defaults to 0.0021."/>
41 </inputs>
42 <outputs>
43 <data format="vcf" name="output" from_work_dir="output.vcf" />
44 </outputs>
45 <tests>
46 <test>
47 <param name="input_bam" value="align.bam" />
48 <param name="ref_file" value="hxb2_pol.fas" />
49 <param name="var_file" value="nt_variants.vcf" />
50 <param name="input_genes" ftype="bed" value="hxb2_pol.bed" />
51 <param name="min_freq" value="0.01" />
52 <output name="output" >
53 <assert_contents>
54 <has_text_matching expression="#CHROM"/>
55 <has_text_matching expression="0.0779" />
56 <has_text_matching expression="0.0103;CAT=.;SRVL=." />
57 <has_text_matching expression="0.0163;CAT=.;SRVL=." />
58 <has_text_matching expression="0.0148;CAT=.;SRVL=." />
59 <has_text_matching expression="0.0234;CAT=.;SRVL=." />
60 <has_text_matching expression="0.0159;CAT=.;SRVL=." />
61 </assert_contents>
62 </output>
63 </test>
64 </tests>
65 <help><![CDATA[
66
67 Amino Acid Variants
68 ===================
69
70 Identifies amino acid mutations for a BAM file.
71
72
73
74 ]]></help>
75 <expand macro="citations" />
76 </tool>