comparison nonpareil.xml @ 0:280386b252a5 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/nonpareil commit dba1b944c94d0adbfa2e8ee8068ee5b80e4ca583
author iuc
date Sun, 05 Nov 2017 11:40:13 -0500
parents
children 45210df786b9
comparison
equal deleted inserted replaced
-1:000000000000 0:280386b252a5
1 <tool id="nonpareil" name="Nonpareil" version="@WRAPPER_VERSION@.0">
2 <description>to estimate average coverage and generate Nonpareil curves</description>
3 <macros>
4 <token name="@WRAPPER_VERSION@">3.1.1</token>
5 </macros>
6 <requirements>
7 <requirement type="package" version="@WRAPPER_VERSION@">nonpareil</requirement>
8 </requirements>
9 <version_command>nonpareil -V</version_command>
10 <command detect_errors="exit_code">
11 <![CDATA[
12 nonpareil
13 -s '$input'
14 -T '$algo'
15 #if $input.is_of_type("fasta")
16 -f 'fasta'
17 #else if $input.is_of_type("fastq")
18 -f 'fastq'
19 #end if
20 -d '$subsampling'
21 -n '$subsample_per_point'
22 -L '$min_overlapping'
23 -X '$max_query_reads'
24 -R \${NONPAREIL_MAX_MEMORY:-1024}
25 -t \${GALAXY_SLOTS:-2}
26 -b output
27 -a '$all_data_output'
28 -C '$mating_vector_output'
29 #if $log_test
30 -l '$log'
31 #end if
32 -o '$summary'
33 $use_portion_in_output
34 -m '$sampling.min_sampling_portion'
35 -M '$sampling.max_sampling_portion'
36 -i '$sampling.sampling_portion_interval'
37 $mating.use_rev_comp
38 $mating.n_as_mismatches
39 #if str($mating.sim_thres) != ''
40 -S '$mating.sim_thres'
41 #end if
42 -k '$mating.kmer_size'
43 #if str($mating.proba) != ''
44 -x '$mating.proba'
45 #end if
46 -r '$seed'
47 ]]></command>
48 <inputs>
49 <param name="input" type="data" format="fastq,fasta" label="Input sequences" help="FastQ format is recommended for kmer algorithm and Fasta for the alignment" argument="-s"/>
50 <param name="algo" type="select" label="Nonpareil algorithm?" argument="-T">
51 <option value="kmer">Kmer</option>
52 <option value="alignment">Alignment</option>
53 </param>
54 <param name="subsampling" type="float" value="0.7" min="0" label="Factor for subsampling" help="Subsample iteratively applying this factor to the number of reads, resulting in logarithmic subsampling. Use 0 to fall back to linear sampling, control" argument="-d"/>
55 <param name="subsample_per_point" type="integer" value="1024" min="0" label="Number of sub-samples to generate per point" help="If it is not a multiple of the number of threads, it is rounded to the next (upper) multiple" argument="-n"/>
56 <param name="min_overlapping" type="integer" value="50" min="0" max="100" label="Minimum overlapping percentage of the aligned region on the largest sequence" help="The similarity is evaluated for the aligned region only" argument="-L"/>
57 <param name="max_query_reads" type="integer" value="1000" min="0" label="Maximum number of reads to use as query" argument="-X"/>
58 <param name="use_portion_in_output" type="boolean" truevalue="-F" falsevalue="" checked="false" label="Report the sampled portions as a fraction of the library instead of the number of reads?" argument="-F"/>
59 <section name="sampling" title="Sampling" expanded="False">
60 <param name="min_sampling_portion" type="float" value="0" min="0" label="Minimum value of sampling portion" argument="-m"/>
61 <param name="max_sampling_portion" type="float" value="1" min="0" label="Maximum value of sampling portion" argument="-M"/>
62 <param name="sampling_portion_interval" type="float" value="0.01" min="0" label="Interval between sampling portions" argument="-i"/>
63 </section>
64 <section name="mating" title="Mating" expanded="False">
65 <param name="use_rev_comp" type="boolean" truevalue="-c" falsevalue="" checked="false" label="Do not use reverse-complement?" help="This is useful for single stranded sequences data" argument="-c"/>
66 <param name="n_as_mismatches" type="boolean" truevalue="-N" falsevalue="" checked="false" label="Treat Ns as mismatches?" help="By default, Ns (unknown nucleotides) match any nucleotide" argument="-N"/>
67 <param name="sim_thres" type="float" optional="true" label="Similarity threshold" help="Reducing this option will increase sensitivity while increasing running time" argument="-S"/>
68 <param name="kmer_size" type="integer" value="24" min="0" label="Kmer size" help="You can increase kmer size to increase sensitivity" argument="-k"/>
69 <param name="proba" type="float" optional="true" label="Probability of taking a sequence into account as query for the construction of the curve" help="Higher values reduce accuracy but increase speed. If set, it overides the maximum number of reads to use as query" argument="-x"/>
70 </section>
71 <param name="seed" type="integer" value="1000" min="0" label="Random generator seed?" argument="-r"/>
72 <param name="log_test" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Output log file?"/>
73 </inputs>
74 <outputs>
75 <data format="tabular" name="summary" label="${tool.name} on ${on_string}: Redundancy summary">
76 <actions>
77 <action name="column_names" type="metadata" default="sequencing_effort,average_redundancy,std,quartile_1,median,quartile_3" />
78 </actions>
79 </data>
80 <data format="tabular" name="all_data_output" label="${tool.name} on ${on_string}: Redundancy values for all the results">
81 <actions>
82 <action name="column_names" type="metadata" default="sequencing_effort,replicate_id estimated_redundancy" />
83 </actions>
84 </data>
85 <data format="txt" name="log" label="${tool.name} on ${on_string}: Log">
86 <filter>log_test</filter>
87 </data>
88 <data format="tabular" name="mating_vector_output" label="${tool.name} on ${on_string}: Mates distribution"/>
89 </outputs>
90 <tests>
91 <test>
92 <param name="input" value="test.fasta"/>
93 <param name="algo" value="alignment"/>
94 <param name="subsampling" value="0.7"/>
95 <param name="subsample_per_point" value="1024"/>
96 <param name="min_overlapping" value="50"/>
97 <param name="max_query_reads" value="1000"/>
98 <param name="use_portion_in_output" value="" />
99 <section name="sampling">
100 <param name="min_sampling_portion" value="0"/>
101 <param name="max_sampling_portion" value="1"/>
102 <param name="sampling_portion_interval" value="0.01"/>
103 </section>
104 <section name="mating">
105 <param name="use_rev_comp" value=""/>
106 <param name="n_as_mismatches" value=""/>
107 <param name="kmer_size" value="24"/>
108 </section>
109 <param name="seed" value="1000"/>
110 <param name="log_test" value="true"/>
111 <output name="all_data_output" value="test1-all_data_output" compare="sim_size" delta="0"/>
112 <output name="log">
113 <assert_contents>
114 <has_text text="Counting sequences" />
115 <has_text text="Evaluating consistency" />
116 <has_text text="Everything seems correct" />
117 </assert_contents>
118 </output>
119 <output name="summary" value="test1-summary" compare="sim_size" delta="0"/>
120 <output name="mating_vector_output" value="test1-mating_vector_output" compare="sim_size" delta="0"/>
121 </test>
122 <test>
123 <param name="input" value="test.fastq"/>
124 <param name="algo" value="kmer"/>
125 <param name="subsampling" value="0.7"/>
126 <param name="subsample_per_point" value="1024"/>
127 <param name="min_overlapping" value="50"/>
128 <param name="max_query_reads" value="10"/>
129 <param name="use_portion_in_output" value="" />
130 <section name="sampling">
131 <param name="min_sampling_portion" value="0"/>
132 <param name="max_sampling_portion" value="1"/>
133 <param name="sampling_portion_interval" value="0.01"/>
134 </section>
135 <section name="mating">
136 <param name="use_rev_comp" value=""/>
137 <param name="n_as_mismatches" value=""/>
138 <param name="kmer_size" value="24"/>
139 </section>
140 <param name="seed" value="1000"/>
141 <param name="log_test" value="false"/>
142 <output name="all_data_output" value="test2-all_data_output" compare="sim_size" delta="0"/>
143 <output name="summary" value="test2-summary" compare="sim_size" delta="0"/>
144 <output name="mating_vector_output" value="test2-mating_vector_output" compare="sim_size" delta="5"/>
145 </test>
146 </tests>
147 <help><![CDATA[
148 Nonpareil uses the redundancy of the reads in metagenomic datasets to estimate the average coverage and predict the amount of sequences that will be required to achieve "nearly complete coverage".
149
150 Nonpareil outputs three files and one optional log file:
151
152 - Redundancy summary is a tab-delimited file with six columns. The first column indicates the sequencing effort (in number of reads), and the remaining columns indicate the summary of the distribution of redundancy (from the replicates, 1,024 by default) at the given sequencing effort. These five columns are: average redundancy, standard deviation, quartile 1, median (quartile 2), and quartile 3.
153 - Redundancy values is a tab-delimited file with three columns. Similar to the redundancy summary file, it contains information about the redundancy at each sequencing effort, but it provides ALL the results from the replicates, not only the summary at each point. The first column indicates the sequencing effort (as a fraction of the dataset), the second column indicates the ID of the replicate (a number used only to introduce some controlled noise in plots), and the third column indicates the estimated redundancy value.
154 - Mates distribution is a raw list with the number of reads in the dataset matching a query read. A set of query reads is randomly drawn by Nonpareil (1,000 by default), and compared against all reads in the dataset. Each line on this file corresponds to a query read (the order is not important). We have seen certain correspondance between these numbers and the distribution of abundances in the community (compared, for example, as rank-abundance plots), but this file is provided only for quality-control purposes and comparisons with other tools.
155 - Log is a verbose log of internal Nonpareil processing. The number to the left (inside squared brackets) indicate the CPU time (in minutes). This file also provide quality assessment of the Nonpareil run (automated consistency evaluation). Ideally, the last line should read "Everything seems correct". Otherwise, it suggests alternative parameters that may improve the estimation.
156
157 For more details about the tool, please check: http://nonpareil.readthedocs.io/en/latest/index.html
158 ]]></help>
159 <citations>
160 <citation type="doi">10.1093/bioinformatics/btt584</citation>
161 </citations>
162 </tool>