0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_cutadapt_trim-paired" name="qiime cutadapt trim-paired" version="2019.4">
|
|
3 <description> - Find and remove adapters in demultiplexed paired-end sequences.</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime cutadapt trim-paired
|
|
9
|
|
10 --i-demultiplexed-sequences=$idemultiplexedsequences
|
|
11
|
|
12 #set $pcores = '${GALAXY_SLOTS:-4}'
|
|
13 #if str($pcores):
|
|
14 --p-cores=$pcores
|
|
15 #end if
|
|
16
|
4
|
17
|
|
18
|
|
19 #if '__sq__' in str($padapterf):
|
|
20 #set $padapterf_temp = $padapterf.replace('__sq__', "'")
|
|
21 #set $padapterf = $padapterf_temp
|
|
22 #end if
|
|
23
|
|
24 #if 'X' in str($padapterf):
|
|
25 #set $padapterf_temp = $padapterf.replace('X', "$")
|
|
26 #set $padapterf = $padapterf_temp
|
|
27 #end if
|
|
28
|
0
|
29 #if str($padapterf):
|
|
30 --p-adapter-f="$padapterf"
|
|
31 #end if
|
|
32
|
4
|
33
|
|
34
|
|
35
|
|
36 #if '__sq__' in str($pfrontf):
|
|
37 #set $pfrontf_temp = $pfrontf.replace('__sq__', "'")
|
|
38 #set $pfrontf = $pfrontf_temp
|
|
39 #end if
|
|
40
|
0
|
41 #if str($pfrontf):
|
|
42 --p-front-f="$pfrontf"
|
|
43 #end if
|
|
44
|
4
|
45
|
|
46
|
|
47
|
0
|
48 #if '__sq__' in str($panywheref):
|
|
49 #set $panywheref_temp = $panywheref.replace('__sq__', "'")
|
|
50 #set $panywheref = $panywheref_temp
|
|
51 #end if
|
|
52
|
|
53 #if str($panywheref):
|
|
54 --p-anywhere-f="$panywheref"
|
|
55 #end if
|
|
56
|
|
57
|
4
|
58
|
|
59
|
|
60
|
|
61 #if '__sq__' in str($padapterr):
|
|
62 #set $padapterr_temp = $padapterr.replace('__sq__', "'")
|
|
63 #set $padapterr = $padapterr_temp
|
|
64 #end if
|
|
65
|
|
66 #if 'X' in str($padapterr):
|
|
67 #set $padapterr_temp = $padapterr.replace('X', "$")
|
|
68 #set $padapterr = $padapterr_temp
|
|
69 #end if
|
|
70
|
0
|
71 #if str($padapterr):
|
|
72 --p-adapter-r="$padapterr"
|
|
73 #end if
|
|
74
|
4
|
75
|
|
76
|
|
77 #if '__sq__' in str($pfrontr):
|
|
78 #set $pfrontr_temp = $pfrontr.replace('__sq__', "'")
|
|
79 #set $pfrontr = $pfrontr_temp
|
|
80 #end if
|
|
81
|
0
|
82 #if str($pfrontr):
|
|
83 --p-front-r="$pfrontr"
|
|
84 #end if
|
|
85
|
4
|
86
|
|
87
|
0
|
88 #if '__sq__' in str($panywherer):
|
|
89 #set $panywherer_temp = $panywherer.replace('__sq__', "'")
|
|
90 #set $panywherer = $panywherer_temp
|
|
91 #end if
|
|
92
|
|
93 #if str($panywherer):
|
|
94 --p-anywhere-r="$panywherer"
|
|
95 #end if
|
|
96
|
4
|
97
|
|
98
|
5
|
99 #if str($perrorrate):
|
0
|
100 --p-error-rate=$perrorrate
|
|
101 #end if
|
|
102
|
|
103 #if $pnoindels:
|
|
104 --p-no-indels
|
|
105 #end if
|
|
106
|
|
107 #if $ptimes:
|
|
108 --p-times=$ptimes
|
|
109 #end if
|
|
110
|
5
|
111 #if str($poverlap):
|
0
|
112 --p-overlap=$poverlap
|
|
113 #end if
|
|
114
|
|
115 #if $pmatchreadwildcards:
|
|
116 --p-match-read-wildcards
|
|
117 #end if
|
|
118
|
|
119 #if $pnomatchadapterwildcards:
|
|
120 --p-no-match-adapter-wildcards
|
|
121 #end if
|
|
122
|
|
123 #if $pminimumlength:
|
|
124 --p-minimum-length=$pminimumlength
|
|
125 #end if
|
|
126
|
|
127 #if $pdiscarduntrimmed:
|
|
128 --p-discard-untrimmed
|
|
129 #end if
|
|
130
|
|
131 --o-trimmed-sequences=otrimmedsequences
|
|
132 ;
|
|
133
|
|
134 cp otrimmedsequences.qza $otrimmedsequences
|
|
135 ]]></command>
|
|
136 <inputs>
|
|
137 <param format="qza,no_unzip.zip" label="--i-demultiplexed-sequences: ARTIFACT SampleData[PairedEndSequencesWithQuality] The paired-end sequences to be trimmed. [required]" name="idemultiplexedsequences" optional="False" type="data"/>
|
|
138 <param label="--p-adapter-f: TEXT... Sequence of an adapter ligated to the 3' end. The List[Str] adapter and any subsequent bases are trimmed. If a `$` is appended, the adapter is only found if it is at the end of the read. Search in forward read. If your sequence of interest is 'framed' by a 5' and a 3' adapter, use this parameter to define a 'linked' primer - see https://cutadapt.readthedocs.io for complete details. [optional]" name="padapterf" optional="True" type="text"/>
|
|
139 <param label="--p-front-f: TEXT... Sequence of an adapter ligated to the 5' end. The List[Str] adapter and any preceding bases are trimmed. Partial matches at the 5' end are allowed. If a `^` character is prepended, the adapter is only found if it is at the beginning of the read. Search in forward read. [optional]" name="pfrontf" optional="True" type="text"/>
|
|
140 <param label="--p-anywhere-f: TEXT... Sequence of an adapter that may be ligated to the List[Str] 5' or 3' end. Both types of matches as described under `adapter` and `front` are allowed. If the first base of the read is part of the match, the behavior is as with `front`, otherwise as with `adapter`. This option is mostly for rescuing failed library preparations - do not use if you know which end your adapter was ligated to. Search in forward read. [optional]" name="panywheref" optional="True" type="text"/>
|
|
141 <param label="--p-adapter-r: TEXT... Sequence of an adapter ligated to the 3' end. The List[Str] adapter and any subsequent bases are trimmed. If a `$` is appended, the adapter is only found if it is at the end of the read. Search in reverse read. If your sequence of interest is 'framed' by a 5' and a 3' adapter, use this parameter to define a 'linked' primer - see https://cutadapt.readthedocs.io for complete details. [optional]" name="padapterr" optional="True" type="text"/>
|
|
142 <param label="--p-front-r: TEXT... Sequence of an adapter ligated to the 5' end. The List[Str] adapter and any preceding bases are trimmed. Partial matches at the 5' end are allowed. If a `^` character is prepended, the adapter is only found if it is at the beginning of the read. Search in reverse read. [optional]" name="pfrontr" optional="True" type="text"/>
|
|
143 <param label="--p-anywhere-r: TEXT... Sequence of an adapter that may be ligated to the List[Str] 5' or 3' end. Both types of matches as described under `adapter` and `front` are allowed. If the first base of the read is part of the match, the behavior is as with `front`, otherwise as with `adapter`. This option is mostly for rescuing failed library preparations - do not use if you know which end your adapter was ligated to. Search in reverse read. [optional]" name="panywherer" optional="True" type="text"/>
|
|
144 <param label="--p-error-rate: PROPORTION Range(0, 1, inclusive_end=True) Maximum allowed error rate. [default: 0.1]" name="perrorrate" optional="True" type="float" min="0" max="1" exclude_max="False" value="0.1"/>
|
|
145 <param label="--p-no-indels: Do not allow insertions or deletions of bases when matching adapters. [default: False]" name="pnoindels" selected="False" type="boolean"/>
|
|
146 <param label="--p-times: INTEGER Remove multiple occurrences of an adapter if it is Range(1, None) repeated, up to `times` times. [default: 1]" name="ptimes" optional="True" type="integer" min="1" value="1"/>
|
|
147 <param label="--p-overlap: INTEGER Require at least `overlap` bases of overlap between Range(1, None) read and adapter for an adapter to be found. [default: 3]" name="poverlap" optional="True" type="integer" min="1" value="3"/>
|
|
148 <param label="--p-match-read-wildcards: --p-no-match-read-wildcards Interpret IUPAC wildcards (e.g., N) in reads. [default: False]" name="pmatchreadwildcards" selected="False" type="boolean"/>
|
|
149 <param label="--p-no-match-adapter-wildcards: Do not interpret IUPAC wildcards (e.g., N) in adapters. [default: False]" name="pnomatchadapterwildcards" selected="False" type="boolean"/>
|
|
150 <param label="--p-minimum-length: INTEGER Range(1, None) Discard reads shorter than specified value. Note, the cutadapt default of 0 has been overridden, because that value produces empty sequence records. [default: 1]" name="pminimumlength" optional="True" type="integer" min="1" value="1"/>
|
|
151 <param label="--p-discard-untrimmed: --p-no-discard-untrimmed Discard reads in which no adapter was found. [default: False]" name="pdiscarduntrimmed" selected="False" type="boolean"/>
|
|
152 </inputs>
|
|
153 <outputs>
|
|
154 <data format="qza" label="${tool.name} on ${on_string}: trimmedsequences.qza" name="otrimmedsequences"/>
|
|
155 </outputs>
|
|
156 <help><![CDATA[
|
|
157 Find and remove adapters in demultiplexed paired-end sequences.
|
|
158 ###############################################################
|
|
159
|
|
160 Search demultiplexed paired-end sequences for adapters and remove them. The
|
|
161 parameter descriptions in this method are adapted from the official
|
|
162 cutadapt docs - please see those docs at https://cutadapt.readthedocs.io
|
|
163 for complete details.
|
|
164
|
|
165 Parameters
|
|
166 ----------
|
|
167 demultiplexed_sequences : SampleData[PairedEndSequencesWithQuality]
|
|
168 The paired-end sequences to be trimmed.
|
|
169 adapter_f : List[Str], optional
|
|
170 Sequence of an adapter ligated to the 3' end. The adapter and any
|
|
171 subsequent bases are trimmed. If a `$` is appended, the adapter is only
|
|
172 found if it is at the end of the read. Search in forward read. If your
|
|
173 sequence of interest is "framed" by a 5' and a 3' adapter, use this
|
|
174 parameter to define a "linked" primer - see
|
|
175 https://cutadapt.readthedocs.io for complete details.
|
|
176 front_f : List[Str], optional
|
|
177 Sequence of an adapter ligated to the 5' end. The adapter and any
|
|
178 preceding bases are trimmed. Partial matches at the 5' end are allowed.
|
|
179 If a `^` character is prepended, the adapter is only found if it is at
|
|
180 the beginning of the read. Search in forward read.
|
|
181 anywhere_f : List[Str], optional
|
|
182 Sequence of an adapter that may be ligated to the 5' or 3' end. Both
|
|
183 types of matches as described under `adapter` and `front` are allowed.
|
|
184 If the first base of the read is part of the match, the behavior is as
|
|
185 with `front`, otherwise as with `adapter`. This option is mostly for
|
|
186 rescuing failed library preparations - do not use if you know which end
|
|
187 your adapter was ligated to. Search in forward read.
|
|
188 adapter_r : List[Str], optional
|
|
189 Sequence of an adapter ligated to the 3' end. The adapter and any
|
|
190 subsequent bases are trimmed. If a `$` is appended, the adapter is only
|
|
191 found if it is at the end of the read. Search in reverse read. If your
|
|
192 sequence of interest is "framed" by a 5' and a 3' adapter, use this
|
|
193 parameter to define a "linked" primer - see
|
|
194 https://cutadapt.readthedocs.io for complete details.
|
|
195 front_r : List[Str], optional
|
|
196 Sequence of an adapter ligated to the 5' end. The adapter and any
|
|
197 preceding bases are trimmed. Partial matches at the 5' end are allowed.
|
|
198 If a `^` character is prepended, the adapter is only found if it is at
|
|
199 the beginning of the read. Search in reverse read.
|
|
200 anywhere_r : List[Str], optional
|
|
201 Sequence of an adapter that may be ligated to the 5' or 3' end. Both
|
|
202 types of matches as described under `adapter` and `front` are allowed.
|
|
203 If the first base of the read is part of the match, the behavior is as
|
|
204 with `front`, otherwise as with `adapter`. This option is mostly for
|
|
205 rescuing failed library preparations - do not use if you know which end
|
|
206 your adapter was ligated to. Search in reverse read.
|
|
207 error_rate : Float % Range(0, 1, inclusive_end=True), optional
|
|
208 Maximum allowed error rate.
|
|
209 indels : Bool, optional
|
|
210 Allow insertions or deletions of bases when matching adapters.
|
|
211 times : Int % Range(1, None), optional
|
|
212 Remove multiple occurrences of an adapter if it is repeated, up to
|
|
213 `times` times.
|
|
214 overlap : Int % Range(1, None), optional
|
|
215 Require at least `overlap` bases of overlap between read and adapter
|
|
216 for an adapter to be found.
|
|
217 match_read_wildcards : Bool, optional
|
|
218 Interpret IUPAC wildcards (e.g., N) in reads.
|
|
219 match_adapter_wildcards : Bool, optional
|
|
220 Interpret IUPAC wildcards (e.g., N) in adapters.
|
|
221 minimum_length : Int % Range(1, None), optional
|
|
222 Discard reads shorter than specified value. Note, the cutadapt default
|
|
223 of 0 has been overridden, because that value produces empty sequence
|
|
224 records.
|
|
225 discard_untrimmed : Bool, optional
|
|
226 Discard reads in which no adapter was found.
|
|
227
|
|
228 Returns
|
|
229 -------
|
|
230 trimmed_sequences : SampleData[PairedEndSequencesWithQuality]
|
|
231 The resulting trimmed sequences.
|
|
232 ]]></help>
|
|
233 <macros>
|
|
234 <import>qiime_citation.xml</import>
|
|
235 </macros>
|
|
236 <expand macro="qiime_citation"/>
|
|
237 </tool>
|