annotate qiime2/qiime_cutadapt_trim-single.xml @ 13:887cd4ad8e16 draft

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