Mercurial > repos > iuc > mothur_chimera_slayer
comparison chimera.slayer.xml @ 2:6f7f890e6a54 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 3418f23b9768f5aafb86488f5ec1cb97530d4fb3
author | iuc |
---|---|
date | Tue, 20 Mar 2018 21:55:10 -0400 |
parents | 72b33fe8c05a |
children | a899cc1416bc |
comparison
equal
deleted
inserted
replaced
1:1cce71e7e7ef | 2:6f7f890e6a54 |
---|---|
5 </macros> | 5 </macros> |
6 <expand macro="requirements"/> | 6 <expand macro="requirements"/> |
7 <expand macro="stdio"/> | 7 <expand macro="stdio"/> |
8 <expand macro="version_command"/> | 8 <expand macro="version_command"/> |
9 <command><![CDATA[ | 9 <command><![CDATA[ |
10 @SHELL_OPTIONS@ | 10 @SHELL_OPTIONS@ |
11 | 11 |
12 ## enable mothur to find blast | 12 ## enable mothur to find blast |
13 loc=`which mothur` && ln -s "\${loc%/mothur}"/* . && | 13 ln -s ln -s `dirname \$(which mothur)`/* . && |
14 | 14 |
15 ## create symlinks to input datasets | 15 ## create symlinks to input datasets |
16 ln -s "$fasta" fasta.dat && | 16 ln -s '$fasta' fasta.dat && |
17 #if $alignment.source == "self": | 17 #if $alignment.source == "self": |
18 ln -s "$alignment.name" alignment.name.dat && | 18 ln -s '$alignment.name' alignment.name.dat && |
19 ln -s "$alignment.group" alignment.group.dat && | 19 ln -s '$alignment.group' alignment.group.dat && |
20 ln -s "$alignment.count" alignment.count.dat && | 20 ln -s '$alignment.count' alignment.count.dat && |
21 #else: | 21 #else: |
22 ln -s "$alignment.template" alignment.template.dat && | 22 ln -s '$alignment.reference' alignment.reference.dat && |
23 #end if | |
24 | |
25 echo 'chimera.slayer( | |
26 fasta=fasta.dat, | |
27 #if $alignment.source == "self": | |
28 reference=self, | |
29 #if $alignment.name: | |
30 name=$alignment.name, | |
23 #end if | 31 #end if |
24 | 32 #if $alignment.group: |
25 echo 'chimera.slayer( | 33 group=$alignment.group, |
26 fasta=fasta.dat, | 34 #end if |
27 #if $alignment.source == "self": | 35 #if $alignment.count: |
28 reference=self, | 36 count=$alignment.count, |
29 #if $alignment.name: | 37 #end if |
30 name=$alignment.name, | 38 #else: |
31 #end if | 39 reference=$alignment.reference, |
32 #if $alignment.group: | 40 #end if |
33 group=$alignment.group, | 41 #if $options.setby == "user": |
34 #end if | 42 search=$options.search, |
35 #if $alignment.count: | 43 window=$options.window, |
36 count=$alignment.count, | 44 increment=$options.increment, |
37 #end if | 45 match=$options.match, |
38 #else: | 46 mismatch=$options.mismatch, |
39 reference=$alignment.template, | 47 numwanted=$options.numwanted, |
40 #end if | 48 parents=$options.parents, |
41 #if $options.setby == "user": | 49 minsim=$options.minsim, |
42 search=$options.search, | 50 mincov=$options.mincov, |
43 window=$options.window, | 51 iters=$options.iters, |
44 increment=$options.increment, | 52 minbs=$options.minbs, |
45 match=$options.match, | 53 minsnp=$options.minsnp, |
46 mismatch=$options.mismatch, | 54 divergence=$options.divergence, |
47 numwanted=$options.numwanted, | 55 trim=$options.trim, |
48 parents=$options.parents, | 56 split=$options.split, |
49 minsim=$options.minsim, | 57 #end if |
50 mincov=$options.mincov, | 58 dereplicate=$dereplicate, |
51 iters=$options.iters, | 59 processors='\${GALAXY_SLOTS:-8}' |
52 minbs=$options.minbs, | 60 )' |
53 minsnp=$options.minsnp, | 61 | sed 's/ //g' ## mothur trips over whitespace |
54 divergence=$options.divergence, | 62 | ./mothur |
55 trim=$options.trim, | 63 | tee mothur.out.log |
56 split=$options.split, | |
57 #end if | |
58 dereplicate=$dereplicate, | |
59 processors='\${GALAXY_SLOTS:-8}' | |
60 )' | |
61 | sed 's/ //g' ## mothur trips over whitespace | |
62 | ./mothur | |
63 | tee mothur.out.log | |
64 ]]></command> | 64 ]]></command> |
65 <inputs> | 65 <inputs> |
66 <param name="fasta" type="data" format="fasta" label="fasta - Candiate Sequences"/> | 66 <param argument="fasta" type="data" format="fasta" label="fasta - Candiate Sequences"/> |
67 <conditional name="alignment"> | 67 <conditional name="alignment"> |
68 <param name="source" type="select" label="Select Reference Template from" help=""> | 68 <param name="source" type="select" label="Select Reference Template from"> |
69 <option value="hist">History</option> | 69 <option value="hist">History</option> |
70 <option value="ref">Cached Reference</option> | 70 <option value="ref">Cached Reference</option> |
71 <option value="self">Self - Use abundant sequences from the input Candiate Sequences fasta </option> | 71 <option value="self">Self - Use abundant sequences from the input Candiate Sequences fasta </option> |
72 </param> | 72 </param> |
73 <when value="ref"> | 73 <when value="ref"> |
74 <param name="template" type="select" label="reference - Select an alignment database " help=""> | 74 <param argument="reference" type="select" label="reference - Select an alignment database"> |
75 <options from_data_table="mothur_aligndb"> | 75 <options from_data_table="mothur_aligndb"> |
76 </options> | 76 </options> |
77 </param> | 77 </param> |
78 </when> | 78 </when> |
79 <when value="hist"> | 79 <when value="hist"> |
80 <param name="template" type="data" format="fasta" label="reference - Reference to align with" help=""/> | 80 <param argument="reference" type="data" format="fasta" label="reference - Reference to align with"/> |
81 </when> | 81 </when> |
82 <when value="self"> | 82 <when value="self"> |
83 <param name="count" type="data" format="mothur.count_table" optional="true" label="count - Count file"/> | 83 <param argument="count" type="data" format="mothur.count_table" optional="true" label="count - Count file"/> |
84 <param name="name" type="data" format="mothur.names" optional="true" label="names - Sequences Names"/> | 84 <param argument="name" type="data" format="mothur.names" optional="true" label="names - Sequences Names"/> |
85 <param name="group" type="data" format="mothur.groups" optional="true" label="group - Sequences Name reference" help="use the more abundant sequences from the same sample to check the query sequence"/> | 85 <param argument="group" type="data" format="mothur.groups" optional="true" label="group - Sequences Name reference" |
86 help="use the more abundant sequences from the same sample to check the query sequence"/> | |
86 </when> | 87 </when> |
87 </conditional> | 88 </conditional> |
88 <conditional name="options"> | 89 <conditional name="options"> |
89 <param name="setby" type="select" label="Slayer Options" help=""> | 90 <param name="setby" type="select" label="Slayer Options"> |
90 <option value="default">Use default settings</option> | 91 <option value="default">Use default settings</option> |
91 <option value="user">Manually set options</option> | 92 <option value="user">Manually set options</option> |
92 </param> | 93 </param> |
93 <when value="default"/> | 94 <when value="default"/> |
94 <when value="user"> | 95 <when value="user"> |
95 <param name="search" type="select" label="search - Search method for finding the closest parent" help=""> | 96 <param argument="search" type="select" label="search - Search method for finding the closest parent"> |
96 <option value="blast" selected="true">blast</option> | 97 <option value="blast" selected="true">blast</option> |
97 <option value="kmer">kmer</option> | 98 <option value="kmer">kmer</option> |
98 </param> | 99 </param> |
99 <param name="window" type="integer" value="50" label="window - Window size for searching for chimeras (default 50)"/> | 100 <param argument="window" type="integer" value="50" label="window - Window size for searching for chimeras (default 50)"/> |
100 <param name="increment" type="integer" value="5" label="increment - Increment for window slide on each iteration (default 5)"/> | 101 <param argument="increment" type="integer" value="5" label="increment - Increment for window slide on each iteration (default 5)"/> |
101 <param name="match" type="integer" value="5" label="match - Reward matched bases (default 5)"/> | 102 <param argument="match" type="integer" value="5" label="match - Reward matched bases (default 5)"/> |
102 <param name="mismatch" type="integer" value="-4" label="mismatch - Penalty for mismatched bases (default -4)"/> | 103 <param argument="mismatch" type="integer" value="-4" label="mismatch - Penalty for mismatched bases (default -4)"/> |
103 <param name="numwanted" type="integer" value="15" label="numwanted - Number of potential parents to to compare with query sequence (default 15)"/> | 104 <param argument="numwanted" type="integer" value="15" label="numwanted - Number of potential parents to to compare with query sequence (default 15)"/> |
104 <param name="parents" type="integer" value="3" label="parents - Number of potential parents to investigate from the numwanted best matches"/> | 105 <param argument="parents" type="integer" value="3" label="parents - Number of potential parents to investigate from the numwanted best matches"/> |
105 <param name="minsim" type="integer" value="90" label="minsim - Minimum similarity % between the query and parent (default 90)"/> | 106 <param argument="minsim" type="integer" value="90" label="minsim - Minimum similarity % between the query and parent (default 90)"/> |
106 <param name="mincov" type="integer" value="70" label="mincov - Minimum coverage % of closest matches in reference and the query (default 70)"/> | 107 <param argument="mincov" type="integer" value="70" label="mincov - Minimum coverage % of closest matches in reference and the query (default 70)"/> |
107 <param name="iters" type="integer" value="1000" label="iters - Number of bootstrap iterations to try (default 100)"/> | 108 <param argument="iters" type="integer" value="1000" label="iters - Number of bootstrap iterations to try (default 1000)"/> |
108 <param name="minbs" type="integer" value="90" label="minbs - Minimum bootstrap support % for calling a sequence chimeric (default 90)"/> | 109 <param argument="minbs" type="integer" value="90" label="minbs - Minimum bootstrap support % for calling a sequence chimeric (default 90)"/> |
109 <param name="minsnp" type="integer" value="10" label="minsnp - Percent of SNPs to sample on each side of breakpoint for computing bootstrap support (default 100)"/> | 110 <param argument="minsnp" type="integer" value="10" label="minsnp - Percent of SNPs to sample on each side of breakpoint for computing bootstrap support (default 10)"/> |
110 <param name="divergence" type="float" value="1.007" label="divergence - Divergence cutoff for chimera determination (default 1.007)"/> | 111 <param argument="divergence" type="float" value="1.007" label="divergence - Divergence cutoff for chimera determination (default 1.007)"/> |
111 <param name="trim" type="boolean" truevalue="true" falsevalue="false" checked="false" label="trim - include chimeric sequences trimmed to their longest peice"/> | 112 <param argument="trim" type="boolean" truevalue="true" falsevalue="false" checked="false" label="trim - include chimeric sequences trimmed to their longest piece"/> |
112 <param name="split" type="boolean" truevalue="true" falsevalue="false" checked="false" label="split - detect tri- and quadmeras" help="if a sequence comes back as non-chimeric, mothur will test the two sides to see if they are chimeric."/> | 113 <param argument="split" type="boolean" truevalue="true" falsevalue="false" checked="false" label="split - detect tri- and quadmeras" |
114 help="if a sequence comes back as non-chimeric, mothur will test the two sides to see if they are chimeric."/> | |
113 </when> | 115 </when> |
114 </conditional> | 116 </conditional> |
115 <param name="dereplicate" type="boolean" falsevalue="false" truevalue="true" checked="false" label="dereplicate - remove chimeric sequences from all groups, default=f" help="If parameter is false, then if one group finds the seqeunce to be chimeric, then all groups find it to be chimeric"/> | 117 <param name="dereplicate" type="boolean" falsevalue="false" truevalue="true" checked="false" label="dereplicate - remove chimeric sequences from all groups" |
118 help="If parameter is false, then if one group finds the seqeunce to be chimeric, then all groups find it to be chimeric"/> | |
119 <expand macro="param-savelog"/> | |
116 </inputs> | 120 </inputs> |
117 <outputs> | 121 <outputs> |
118 <expand macro="logfile-output"/> | 122 <expand macro="logfile-output"/> |
119 <data name="out_file" from_work_dir="fasta.slayer.chimeras" format="txt" label="${tool.name} on ${on_string}: slayer.chimeras"/> | 123 <data name="slayer.chimeras" from_work_dir="fasta.slayer.chimeras" format="txt" label="${tool.name} on ${on_string}: slayer.chimeras"/> |
120 <data name="out_accnos" from_work_dir="fasta.slayer.accnos" format="mothur.accnos" label="${tool.name} on ${on_string}: slayer.accnos"/> | 124 <data name="out_accnos" from_work_dir="fasta.slayer.accnos" format="mothur.accnos" label="${tool.name} on ${on_string}: slayer.accnos"/> |
121 </outputs> | 125 </outputs> |
122 <tests> | 126 <tests> |
123 <test><!-- test with external reference --> | 127 <test><!-- test with external reference --> |
124 <param name="fasta" value="Mock_S280_L001_R1_001_small.trim.contigs.good.align_head"/> | 128 <param name="fasta" value="Mock_S280_L001_R1_001_small.trim.contigs.good.align_head"/> |
125 <param name="source" value="hist"/> | 129 <param name="source" value="hist"/> |
126 <param name="template" value="HMP_MOCK.v35.align"/> | 130 <param name="reference" value="HMP_MOCK.v35.align"/> |
127 <output name="out_file" file="Mock_S280_L001_R1_001_small.trim.contigs.good.slayer.chimeras" ftype="txt"/> | 131 <output name="slayer.chimeras" file="Mock_S280_L001_R1_001_small.trim.contigs.good.slayer.chimeras" ftype="txt"/> |
132 <param name="savelog" value="true"/> | |
128 <expand macro="logfile-test"/> | 133 <expand macro="logfile-test"/> |
129 </test> | 134 </test> |
130 <test><!-- test with self as reference --> | 135 <test><!-- test with self as reference --> |
131 <param name="fasta" value="HMP_MOCK.v35.align"/> | 136 <param name="fasta" value="HMP_MOCK.v35.align"/> |
132 <param name="source" value="self"/> | 137 <param name="source" value="self"/> |
133 <param name="setby" value="user"/> | 138 <param name="setby" value="user"/> |
134 <param name="search" value="kmer"/> | 139 <param name="search" value="kmer"/> |
135 <param name="name" value="HMP_MOCK.v35.align.names"/> | 140 <param name="name" value="HMP_MOCK.v35.align.names"/> |
136 <output name="out_file" file="HMP_MOCK.v35.slayer.chimeras" ftype="txt"/> | 141 <output name="slayer.chimeras" file="HMP_MOCK.v35.slayer.chimeras" ftype="txt"/> |
142 <param name="savelog" value="true"/> | |
137 <expand macro="logfile-test"/> | 143 <expand macro="logfile-test"/> |
138 </test> | 144 </test> |
139 </tests> | 145 </tests> |
140 | 146 <help><![CDATA[ |
141 <help> | |
142 <![CDATA[ | |
143 | 147 |
144 @MOTHUR_OVERVIEW@ | 148 @MOTHUR_OVERVIEW@ |
145 | 149 |
146 **Command Documentation** | 150 **Command Documentation** |
147 | 151 |
161 | 165 |
162 | 166 |
163 .. _ChimeraSlayer: http://microbiomeutil.sourceforge.net/ | 167 .. _ChimeraSlayer: http://microbiomeutil.sourceforge.net/ |
164 .. _chimera.slayer: https://www.mothur.org/wiki/Chimera.slayer | 168 .. _chimera.slayer: https://www.mothur.org/wiki/Chimera.slayer |
165 | 169 |
166 ]]> | 170 ]]></help> |
167 </help> | |
168 <expand macro="citations"/> | 171 <expand macro="citations"/> |
169 </tool> | 172 </tool> |