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