comparison pick_otus.xml @ 0:e5c3175506b7 default tip

Initial tool configs for qiime, most need work.
author Jim Johnson <jj@umn.edu>
date Sun, 17 Jul 2011 10:30:11 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e5c3175506b7
1 <tool id="pick_otus" name="pick_otus" version="1.2.1">
2 <description>OTU picking</description>
3 <requirements>
4 <requirement type="binary">pick_otus.py</requirement>
5 </requirements>
6 <command interpreter="python">
7 qiime_wrapper.py
8 --galaxy_outputdir='$log.extra_files_path'
9 #if $pick.otu_picking_method == 'uclust' and $pick.refseqs_fp.__str__ != 'None':
10 --galaxy_datasets='^\S+_otus\.txt$:'$otus,'^\S+_otus\.log$:'$log,'^\S+_failures\.txt$:'$failures
11 #else:
12 --galaxy_datasets='^\S+_otus\.txt$:'$otus,'^\S+_otus\.log$:'$log
13 #end if
14 pick_otus.py
15 --input_seqs_filepath=$input_seqs_filepath
16 #if $pick.otu_picking_method == 'uclust':
17 #if $pick.refseqs_fp.__str__ != 'None':
18 --refseqs_fp=$pick.refseqs_fp
19 --otu_picking_method='uclust_ref'
20 $pick.suppress_new_clusters
21 #else:
22 --otu_picking_method=$pick.otu_picking_method
23 #end if
24 --similarity=$pick.similarity
25 $pick.enable_rev_strand_match
26 $pick.optimal_uclust
27 $pick.exact_uclust
28 $pick.user_sort
29 $pick.suppress_presort_by_abundance_uclust
30 --max_accepts=$pick.max_accepts
31 --max_rejects=$pick.max_rejects
32 --stepwords=$pick.stepwords
33 --word_length=$pick.word_length
34 --uclust_otu_id_prefix=$pick.uclust_otu_id_prefix
35 $pick.uclust_stable_sort
36 $pick.save_uc_files
37 #elif $pick.otu_picking_method == 'mothur':
38 --otu_picking_method=$pick.otu_picking_method
39 --clustering_algorithm=$pick.clustering_algorithm
40 --similarity=$pick.similarity
41 #elif $pick.otu_picking_method == 'trie':
42 --otu_picking_method=$pick.otu_picking_method
43 $pick.trie_reverse_seqs
44 #elif $pick.otu_picking_method == 'prefix_suffix':
45 --otu_picking_method=$pick.otu_picking_method
46 --prefix_length=$pick.prefix_length
47 --suffix_length=$pick.suffix_length
48 #elif pick.otu_picking_method == 'blast':
49 --otu_picking_method=$pick.otu_picking_method
50 #if $refseqs_fp.__str__ != 'None':
51 --refseqs_fp=$pick.refseqs_fp
52 #end if
53 --blast_db=$pick.blast_db
54 --similarity=$pick.similarity
55 --max_e_value=$pick.max_e_value
56 --min_aligned_percent=$pick.min_aligned_percent
57 #elif $pick.otu_picking_method == 'cdhit':
58 --otu_picking_method=$pick.otu_picking_method
59 --similarity=$pick.similarity
60 --max_cdhit_memory=$pick.max_cdhit_memory
61 --prefix_prefilter_length=$pick.prefix_prefilter_length
62 $pick.trie_prefilter
63 #end if
64 --output_dir='$log.extra_files_path'
65 </command>
66 <inputs>
67 <param name="input_seqs_filepath" type="data" format="fasta" label="input_seqs_filepath"
68 help="Input sequences [REQUIRED]"/>
69 <conditional name="pick">
70 <param name="otu_picking_method" type="select" label="otu_picking_method"
71 help="Method for picking OTUs. Valid choices are: mothur, trie, uclust_ref, prefix_suffix, blast, cdhit, uclust. The mothur method requires an input file of aligned sequences [default: uclust]">
72 <option value="uclust" selected="true">uclust</option>
73 <option value="mothur">mothur</option>
74 <option value="trie">trie</option>
75 <option value="prefix_suffix">prefix_suffix</option>
76 <option value="blast">blast</option>
77 <option value="cdhit">cdhit</option>
78 </param>
79 <when value="mothur">
80 <param name="clustering_algorithm" type="select" label="clustering_algorithm"
81 help="Clustering algorithm for mothur otu picking method. Valid choices are: furthest, nearest, average. [default: furthest]">
82 <option value="furthest" selected="true">furthest</option>
83 <option value="nearest">nearest</option>
84 <option value="average">average</option>
85 </param>
86 <param name="similarity" type="float" value="0.97" label="similarity"
87 help="Sequence similarity threshold (for cdhit, uclust, or uclust_ref) [default: 0.97]"/>
88 </when> <!-- mothur -->
89 <when value="trie">
90 <param name="trie_reverse_seqs" type="boolean" truevalue="--trie_reverse_seqs" falsevalue="" checked="false" label="trie_reverse_seqs"
91 help="Reverse seqs before picking OTUs with the Trie OTU picker for suffix (rather than prefix) collapsing [default: False]"/>
92 </when> <!-- trie -->
93 <when value="uclust">
94 <param name="refseqs_fp" type="data" format="fasta" label="refseqs_fp" optional="true"
95 help="Reference sequences to search against"/>
96 <param name="suppress_new_clusters" type="boolean" truevalue="--suppress_new_clusters" falsevalue="" checked="false" label="suppress_new_clusters"
97 help="Suppress creation of new clusters using seqs that don't match reference when using -m uclust_ref [default: False]"/>
98 <param name="suppress_presort_by_abundance_uclust" type="boolean" truevalue="--suppress_presort_by_abundance_uclust" falsevalue="" checked="false" label="suppress_presort_by_abundance_uclust"
99 help="Suppress presorting of sequences by abundance when picking OTUs with uclust or uclust_ref [default: False]"/>
100 <param name="similarity" type="float" value="0.97" label="similarity"
101 help="Sequence similarity threshold (for cdhit, uclust, or uclust_ref) [default: 0.97]"/>
102 <param name="enable_rev_strand_match" type="boolean" truevalue="--enable_rev_strand_match" falsevalue="" checked="false" label="enable_rev_strand_match"
103 help="Enable reverse strand matching for uclust otu picking, will double the amount of memory used. [default: False]"/>
104 <param name="optimal_uclust" type="boolean" truevalue="--optimal_uclust" falsevalue="" checked="false" label="optimal_uclust"
105 help="Pass the --optimal flag to uclust for uclust otu picking. [default: False]"/>
106 <param name="exact_uclust" type="boolean" truevalue="--exact_uclust" falsevalue="" checked="false" label="exact_uclust"
107 help="Pass the --exact flag to uclust for uclust otu picking. [default: False]"/>
108 <param name="user_sort" type="boolean" truevalue="--user_sort" falsevalue="" checked="false" label="user_sort"
109 help="Pass the --user_sort flag to uclust for uclust otu picking. [default: False]"/>
110 <param name="max_accepts" type="integer" value="20" label="max_accepts"
111 help="max_accepts value to uclust and uclust_ref [default: 20]"/>
112 <param name="max_rejects" type="integer" value="500" label="max_rejects"
113 help="max_rejects value to uclust and uclust_ref [default: 500]"/>
114
115 <param name="stepwords" type="integer" value="20" label="stepwords"
116 help="stepwords value to uclust and uclust_ref [default: 20]"/>
117 <param name="word_length" type="integer" value="12" label="word_length"
118 help="w value to uclust and uclust_ref [default: 12]"/>
119
120 <param name="uclust_otu_id_prefix" type="text" label="uclust_otu_id_prefix"
121 help="OTU identifier prefix (string) for the de novo uclust OTU picker [default: %default, OTU ids are ascending integers]"/>
122 <param name="uclust_stable_sort" type="boolean" truevalue="--uclust_stable_sort" falsevalue="" checked="false" label="uclust_stable_sort"
123 help="pass --stable_sort to uclust (uclust versions uclustq1.2.15 and later only) [default: False]"/>
124 <param name="save_uc_files" type="boolean" truevalue="" falsevalue="--save_uc_files" checked="false" label="save_uc_files"
125 help="Enable preservation of intermediate uclust (.uc) files that are used to generate clusters via uclust. [default: True]"/>
126 </when> <!-- uclust -->
127 <when value="prefix_suffix">
128 <param name="prefix_length" type="integer" value="50" label="prefix_length"
129 help="Prefix length when using the prefix_suffix otu picker; WARNING: CURRENTLY DIFFERENT FROM prefix_prefilter_length (-n)! [default: 50]"/>
130 <param name="suffix_length" type="integer" value="50" label="suffix_length"
131 help="Suffix length when using the prefix_suffix otu picker [default: 50]"/>
132
133 </when> <!-- prefix_suffix -->
134 <when value="blast">
135 <param name="refseqs_fp" type="data" format="fasta" label="refseqs_fp" optional="true"
136 help="Reference sequences to search against"/>
137 <param name="blast_db" type="text" label="blast_db"
138 help="Pre-existing database to blast against when using -m blast [default: ('NO', 'DEFAULT')]"/>
139 <param name="min_aligned_percent" type="float" value="0.5" label="min_aligned_percent"
140 help="Minimum percent of query sequence that can be aligned to consider a hit (BLAST OTU picker only) [default: 0.5]"/>
141 <param name="max_e_value" type="float" value="1e-10" label="max_e_value"
142 help="Max E-value when clustering with BLAST [default: 1e-10]"/>
143 </when> <!-- blast -->
144 <when value="cdhit">
145 <param name="max_cdhit_memory" type="integer" value="400" label="max_cdhit_memory"
146 help="Maximum available memory to cd-hit-est (via the program's -M option) for cdhit OTU picking method (units of Mbyte) [default: 400]"/>
147 <param name="similarity" type="float" value="0.97" label="similarity"
148 help="Sequence similarity threshold (for cdhit, uclust, or uclust_ref) [default: 0.97]"/>
149 <param name="prefix_prefilter_length" type="integer" value="-1" label="prefix_prefilter_length"
150 help="Prefilter data so seqs with identical first prefix_prefilter_length are automatically grouped into a single OTU. This is useful for large sequence collections where OTU picking doesn't scale well [default: %default; 100 is a good value]"/>
151 <param name="trie_prefilter" type="boolean" truevalue="--trie_prefilter" falsevalue="" checked="false" label="trie_prefilter"
152 help="prefilter data so seqs which are identical prefixes of a longer seq are automatically grouped into a single OTU; useful for large sequence collections where OTU picking doesn't scale well [default: False]"/>
153 </when> <!-- cdhit -->
154 </conditional> <!-- pick -->
155 </inputs>
156 <outputs>
157 <data format="txt" name="log" label="${tool.name} on ${on_string}: log" />
158 <data format="qiimeotu" name="otus" label="${tool.name} on ${on_string}: otus" />
159 <data format="txt" name="failures" label="${tool.name} on ${on_string}: failures.txt" >
160 <filter>(pick['otu_picking_method'] == 'uclust' and pick['refseqs_fp'])</filter>
161 </data>
162 </outputs>
163 <tests>
164 </tests>
165 <help>
166
167 </help>
168 </tool>
169