Mercurial > repos > iuc > vapor
comparison vapor.xml @ 3:f11d2dd29b2b draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vapor commit f725055ea2ccc264535ea0473bc5658de6bd3949
author | iuc |
---|---|
date | Mon, 17 Oct 2022 07:28:50 +0000 |
parents | b1ca81ce88f9 |
children | 244812f5bd1f |
comparison
equal
deleted
inserted
replaced
2:b1ca81ce88f9 | 3:f11d2dd29b2b |
---|---|
1 <tool id="vapor" name="VAPOR" version="@TOOL_VERSION@+galaxy1" profile="21.05"> | 1 <tool id="vapor" name="VAPOR" version="@TOOL_VERSION@+galaxy2" profile="21.05"> |
2 <description> | 2 <description> |
3 Classify Influenza samples from raw short read sequence data | 3 Classify Influenza samples from raw short read sequence data |
4 </description> | 4 </description> |
5 <macros> | 5 <macros> |
6 <token name="@TOOL_VERSION@">1.0.2</token> | 6 <token name="@TOOL_VERSION@">1.0.2</token> |
10 </xrefs> | 10 </xrefs> |
11 <requirements> | 11 <requirements> |
12 <requirement type="package" version="@TOOL_VERSION@">vapor</requirement> | 12 <requirement type="package" version="@TOOL_VERSION@">vapor</requirement> |
13 </requirements> | 13 </requirements> |
14 <command detect_errors="exit_code"><![CDATA[ | 14 <command detect_errors="exit_code"><![CDATA[ |
15 #set $fastq_files = [] | 15 #if str($fastq_input.fastq_input_selector) == "paired" |
16 mkdir fastq_files && | 16 #set r1_ext = $fastq_input.fastq1.extension |
17 #for $i, $fastq in enumerate($fastq_file) | 17 #set r2_ext = $fastq_input.fastq2.extension |
18 #if $fastq.ext.endswith(".gz") | 18 ln -s '$fastq_input.fastq1' fastq1.$r1_ext && |
19 #set $ext='.fastq.gz' | 19 ln -s '$fastq_input.fastq2' fastq2.$r2_ext && |
20 #else | 20 #elif str($fastq_input.fastq_input_selector) == "paired_collection" |
21 #set $ext='.fastq' | 21 #set r1_ext = $fastq_input.fastq_pairs.forward.extension |
22 #end if | 22 #set r2_ext = $fastq_input.fastq_pairs.reverse.extension |
23 #set $out = './fastq_files/input_%s%s' % ($i, $ext) | 23 ln -s '$fastq_input.fastq_pairs.forward' fastq1.$r1_ext && |
24 ln -s '${fastq}' $out && | 24 ln -s '$fastq_input.fastq_pairs.reverse' fastq2.$r2_ext && |
25 $fastq_files.append($out) | 25 #else |
26 #end for | 26 #set r1_ext = $fastq_input.fastq_single.extension |
27 ln -s '$fastq_input.fastq_single' fastq1.$r1_ext && | |
28 #end if | |
27 vapor.py | 29 vapor.py |
28 --return_best_n $opt.return_best_n | 30 --return_best_n $opt.return_best_n |
29 #if $output_type == "fasta" | 31 #if $output_type == "fasta" |
30 --return_seqs | 32 --return_seqs |
31 #end if | 33 #end if |
33 -t '$opt.score_threshold' | 35 -t '$opt.score_threshold' |
34 -c '$opt.min_kmer_cov' | 36 -c '$opt.min_kmer_cov' |
35 -m '$opt.min_kmer_prop' | 37 -m '$opt.min_kmer_prop' |
36 -fa '$fasta_file' | 38 -fa '$fasta_file' |
37 -fq | 39 -fq |
38 #for $fq in $fastq_files | 40 fastq1.$r1_ext |
39 '${fq}' | 41 #if str($fastq_input.fastq_input_selector) in ["paired", "paired_collection"] |
40 #end for | 42 fastq2.$r2_ext |
43 #end if | |
41 -f '$opt.top_seed_frac' | 44 -f '$opt.top_seed_frac' |
42 -q | 45 -q |
43 > out_file | 46 > out_file |
44 ]]> </command> | 47 ]]> </command> |
45 <inputs> | 48 <inputs> |
46 <param name="fasta_file" format="fasta" type="data" label="FASTA file" help="Raw short read sequences (full length reference segment sequences)" /> | 49 <param name="fasta_file" format="fasta" type="data" label="FASTA file" help="Raw short read sequences (full length reference segment sequences)" /> |
47 <param name="fastq_file" format="fastq,fastq.gz,fastqsanger,fastqsanger.gz" type="data" multiple="true" label="FASTQ file(s)" help="WGS reads" /> | 50 <conditional name="fastq_input"> |
51 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data"> | |
52 <option value="single">Single</option> | |
53 <option value="paired">Paired</option> | |
54 <option value="paired_collection">Paired Collection</option> | |
55 </param> | |
56 <when value="single"> | |
57 <param name="fastq_single" format="fastqsanger,fastqsanger.gz" type="data" label="FASTQ file" help="Raw short read sequences (full length reference segment sequences)" /> | |
58 </when> | |
59 <when value="paired"> | |
60 <param name="fastq1" type="data" format="fastqsanger,fastqsanger.gz" label="Select first set of reads" help="Specify reads dataset with forward reads"/> | |
61 <param name="fastq2" type="data" format="fastqsanger,fastqsanger.gz" label="Select second set of reads" help="Specify reads dataset with reverse reads"/> | |
62 </when> | |
63 <when value="paired_collection"> | |
64 <param name="fastq_pairs" format="fastqsanger,fastqsanger.gz" type="data_collection" collection_type="paired" label="Select a paired collection" help="Dataset collection with forward and reverse reads"/> | |
65 </when> | |
66 </conditional> | |
48 <param name="output_type" type="select" label="Output type"> | 67 <param name="output_type" type="select" label="Output type"> |
49 <option value="scores" selected="true">Return scores only</option> | 68 <option value="scores" selected="true">Return scores only</option> |
50 <option value="fasta">Return FASTA only</option> | 69 <option value="fasta">Return FASTA only</option> |
51 </param> | 70 </param> |
52 <section name="opt" title="Optional arguments" expanded="true"> | 71 <section name="opt" title="Optional arguments" expanded="true"> |
68 <data name="output_fasta" from_work_dir="out_file" format="fasta" label="${tool.name} on ${on_string}: closest reference fasta"> | 87 <data name="output_fasta" from_work_dir="out_file" format="fasta" label="${tool.name} on ${on_string}: closest reference fasta"> |
69 <filter>output_type == "fasta"</filter> | 88 <filter>output_type == "fasta"</filter> |
70 </data> | 89 </data> |
71 </outputs> | 90 </outputs> |
72 <tests> | 91 <tests> |
73 <test expect_num_outputs="1"><!-- Test 1: fastq --> | 92 <test expect_num_outputs="1"> |
93 <conditional name="fastq_input"> | |
94 <param name="fastq_input_selector" value="single" /> | |
95 <param name="fastq_single" ftype="fastq" value="test_reads.fq" /> | |
96 </conditional> | |
74 <param name="fasta_file" value="HA_sample.fa" /> | 97 <param name="fasta_file" value="HA_sample.fa" /> |
75 <param name="fastq_file" ftype="fastq" value="test_reads.fq" /> | |
76 <output name="output_scores" file="output1.tab" /> | |
77 </test> | |
78 <test expect_num_outputs="1"><!-- Test 2: multiple fastq --> | |
79 <param name="fasta_file" value="HA_sample.fa" /> | |
80 <param name="fastq_file" ftype="fastq" value="test_reads.fq,test_reads2.fq" /> | |
81 <output name="output_scores" file="output2.tab" /> | |
82 </test> | |
83 <test expect_num_outputs="1"><!-- Test 3: fastqsanger.gz --> | |
84 <param name="fasta_file" value="HA_sample.fa" /> | |
85 <param name="fastq_file" ftype="fastqsanger.gz" value="test_reads.fastqsanger.gz" /> | |
86 <output name="output_scores" file="output1.tab" /> | |
87 </test> | |
88 <test expect_num_outputs="1"><!-- Test 4: opt --> | |
89 <param name="fasta_file" value="HA_sample.fa" /> | |
90 <param name="fastq_file" value="test_reads.fastqsanger.gz" /> | |
91 <output name="output_scores" file="output1.tab" /> | 98 <output name="output_scores" file="output1.tab" /> |
92 </test> | 99 </test> |
93 <test expect_num_outputs="1"> | 100 <test expect_num_outputs="1"> |
101 <conditional name="fastq_input"> | |
102 <param name="fastq_input_selector" value="paired" /> | |
103 <param name="fastq1" ftype="fastq" value="test_reads.fq" /> | |
104 <param name="fastq2" ftype="fastq" value="test_reads2.fq" /> | |
105 </conditional> | |
94 <param name="fasta_file" value="HA_sample.fa" /> | 106 <param name="fasta_file" value="HA_sample.fa" /> |
95 <param name="fastq_file" value="test_reads.fq" /> | 107 <output name="output_scores" file="output2.tab" /> |
108 </test> | |
109 <test expect_num_outputs="1"> | |
110 <conditional name="fastq_input"> | |
111 <param name="fastq_input_selector" value="single" /> | |
112 <param name="fastq_single" ftype="fastqsanger.gz" value="test_reads.fastqsanger.gz" /> | |
113 </conditional> | |
114 <param name="fasta_file" value="HA_sample.fa" /> | |
115 <output name="output_scores" file="output1.tab" /> | |
116 </test> | |
117 <test expect_num_outputs="1"> | |
118 <conditional name="fastq_input"> | |
119 <param name="fastq_input_selector" value="single" /> | |
120 <param name="fastq_single" value="test_reads.fq" /> | |
121 </conditional> | |
122 <param name="fasta_file" value="HA_sample.fa" /> | |
96 <section name="opt"> | 123 <section name="opt"> |
97 <param name="kmer_length" value="29" /> | 124 <param name="kmer_length" value="29" /> |
98 <param name="score_threshold" value="0.5" /> | 125 <param name="score_threshold" value="0.5" /> |
99 <param name="min_kmer_cov" value="7" /> | 126 <param name="min_kmer_cov" value="7" /> |
100 <param name="min_kmer_prop" value="0.5" /> | 127 <param name="min_kmer_prop" value="0.5" /> |
101 <param name="top_seed_frac" value="0.5" /> | 128 <param name="top_seed_frac" value="0.5" /> |
102 </section> | 129 </section> |
103 <output name="output_scores" file="output4.tab" /> | 130 <output name="output_scores" file="output4.tab" /> |
104 </test> | 131 </test> |
105 <test expect_num_outputs="1"><!-- Test 5: fasta output--> | 132 <test expect_num_outputs="1"> |
133 <conditional name="fastq_input"> | |
134 <param name="fastq_input_selector" value="single" /> | |
135 <param name="fastq_single" value="test_reads.fq" /> | |
136 </conditional> | |
106 <param name="fasta_file" value="HA_sample.fa" /> | 137 <param name="fasta_file" value="HA_sample.fa" /> |
107 <param name="fastq_file" value="test_reads.fq" /> | |
108 <param name="output_type" value="fasta" /> | 138 <param name="output_type" value="fasta" /> |
109 <section name="opt"> | 139 <section name="opt"> |
110 <param name="return_best_n" value="3" /> | 140 <param name="return_best_n" value="3" /> |
111 </section> | 141 </section> |
112 <output name="output_fasta" file="output5.fa" /> | 142 <output name="output_fasta" file="output5.fa" /> |