Mercurial > repos > iuc > vapor
comparison vapor.xml @ 2:b1ca81ce88f9 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vapor commit 4eb29c16fda3267d50f57448a28807b03c33a96f
author | iuc |
---|---|
date | Tue, 04 Oct 2022 21:13:05 +0000 |
parents | 7bf891a13ace |
children | f11d2dd29b2b |
comparison
equal
deleted
inserted
replaced
1:7bf891a13ace | 2:b1ca81ce88f9 |
---|---|
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 = [] | |
16 mkdir fastq_files && | |
17 #for $i, $fastq in enumerate($fastq_file) | |
18 #if $fastq.ext.endswith(".gz") | |
19 #set $ext='.fastq.gz' | |
20 #else | |
21 #set $ext='.fastq' | |
22 #end if | |
23 #set $out = './fastq_files/input_%s%s' % ($i, $ext) | |
24 ln -s '${fastq}' $out && | |
25 $fastq_files.append($out) | |
26 #end for | |
15 vapor.py | 27 vapor.py |
16 --return_best_n $opt.return_best_n | 28 --return_best_n $opt.return_best_n |
17 #if $output_type == "fasta" | 29 #if $output_type == "fasta" |
18 --return_seqs | 30 --return_seqs |
19 #end if | 31 #end if |
20 -k '$opt.kmer_length' | 32 -k '$opt.kmer_length' |
21 -t '$opt.score_threshold' | 33 -t '$opt.score_threshold' |
22 -c '$opt.min_kmer_cov' | 34 -c '$opt.min_kmer_cov' |
23 -m '$opt.min_kmer_prop' | 35 -m '$opt.min_kmer_prop' |
24 -fa '$fasta_file' | 36 -fa '$fasta_file' |
25 -fq '$fastq_file' | 37 -fq |
38 #for $fq in $fastq_files | |
39 '${fq}' | |
40 #end for | |
26 -f '$opt.top_seed_frac' | 41 -f '$opt.top_seed_frac' |
27 -q | 42 -q |
28 > out_file | 43 > out_file |
29 ]]> </command> | 44 ]]> </command> |
30 <inputs> | 45 <inputs> |
53 <data name="output_fasta" from_work_dir="out_file" format="fasta" label="${tool.name} on ${on_string}: closest reference fasta"> | 68 <data name="output_fasta" from_work_dir="out_file" format="fasta" label="${tool.name} on ${on_string}: closest reference fasta"> |
54 <filter>output_type == "fasta"</filter> | 69 <filter>output_type == "fasta"</filter> |
55 </data> | 70 </data> |
56 </outputs> | 71 </outputs> |
57 <tests> | 72 <tests> |
58 <test expect_num_outputs="1"> | 73 <test expect_num_outputs="1"><!-- Test 1: fastq --> |
59 <param name="fasta_file" value="HA_sample.fa" /> | 74 <param name="fasta_file" value="HA_sample.fa" /> |
60 <param name="fastq_file" value="test_reads.fq" /> | 75 <param name="fastq_file" ftype="fastq" value="test_reads.fq" /> |
61 <output name="output_scores" file="output1.tab" /> | 76 <output name="output_scores" file="output1.tab" /> |
62 </test> | 77 </test> |
63 <test expect_num_outputs="1"> | 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 --> | |
64 <param name="fasta_file" value="HA_sample.fa" /> | 89 <param name="fasta_file" value="HA_sample.fa" /> |
65 <param name="fastq_file" value="test_reads.fastqsanger.gz" /> | 90 <param name="fastq_file" value="test_reads.fastqsanger.gz" /> |
66 <output name="output_scores" file="output1.tab" /> | 91 <output name="output_scores" file="output1.tab" /> |
67 </test> | 92 </test> |
68 <test expect_num_outputs="1"> | 93 <test expect_num_outputs="1"> |
73 <param name="score_threshold" value="0.5" /> | 98 <param name="score_threshold" value="0.5" /> |
74 <param name="min_kmer_cov" value="7" /> | 99 <param name="min_kmer_cov" value="7" /> |
75 <param name="min_kmer_prop" value="0.5" /> | 100 <param name="min_kmer_prop" value="0.5" /> |
76 <param name="top_seed_frac" value="0.5" /> | 101 <param name="top_seed_frac" value="0.5" /> |
77 </section> | 102 </section> |
78 <output name="output_scores" file="output2.tab" /> | 103 <output name="output_scores" file="output4.tab" /> |
79 </test> | 104 </test> |
80 <test expect_num_outputs="1"> | 105 <test expect_num_outputs="1"><!-- Test 5: fasta output--> |
81 <param name="fasta_file" value="HA_sample.fa" /> | 106 <param name="fasta_file" value="HA_sample.fa" /> |
82 <param name="fastq_file" value="test_reads.fq" /> | 107 <param name="fastq_file" value="test_reads.fq" /> |
83 <param name="output_type" value="fasta" /> | 108 <param name="output_type" value="fasta" /> |
84 <section name="opt"> | 109 <section name="opt"> |
85 <param name="return_best_n" value="3" /> | 110 <param name="return_best_n" value="3" /> |
86 </section> | 111 </section> |
87 <output name="output_fasta" file="output3.fa" /> | 112 <output name="output_fasta" file="output5.fa" /> |
88 </test> | 113 </test> |
89 </tests> | 114 </tests> |
90 <help><![CDATA[ | 115 <help><![CDATA[ |
91 **What it does** | 116 **What it does** |
92 | 117 |