0
|
1 <?xml version="1.0" ?>
|
9
|
2 <tool id="qiime_cutadapt_demux-paired" name="qiime cutadapt demux-paired" version="2019.7">
|
0
|
3 <description> - Demultiplex paired-end sequence data with barcodes in- sequence.</description>
|
|
4 <requirements>
|
9
|
5 <requirement type="package" version="2019.7">qiime2</requirement>
|
0
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime cutadapt demux-paired
|
|
9 --i-seqs=$iseqs
|
|
10
|
2
|
11
|
4
|
12 #if $input_files_mforwardbarcodesfile:
|
|
13 #def list_dict_to_string_forward(list_dict):
|
|
14 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
15 #for d in list_dict[1:]:
|
9
|
16 #set $file_list = $file_list + ' --m-forward-barcodes-file=' + d['additional_input'].__getattr__('file_name')
|
4
|
17 #end for
|
|
18 #return $file_list
|
0
|
19 #end def
|
4
|
20 --m-forward-barcodes-file=$list_dict_to_string_forward($input_files_mforwardbarcodesfile)
|
2
|
21 #end if
|
|
22
|
|
23 #if $input_files_mreversebarcodesfile:
|
4
|
24 #def list_dict_to_string_reverse(list_dict):
|
|
25 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
26 #for d in list_dict[1:]:
|
9
|
27 #set $file_list = $file_list + ' --m-reverse-barcodes-file=' + d['additional_input'].__getattr__('file_name')
|
4
|
28 #end for
|
|
29 #return $file_list
|
|
30 #end def
|
|
31 --m-reverse-barcodes-file=$list_dict_to_string_reverse($input_files_mreversebarcodesfile)
|
|
32 #end if
|
|
33
|
|
34
|
|
35
|
9
|
36 #if str($pbatchsize):
|
|
37 --p-batch-size $pbatchsize
|
|
38 #end if
|
|
39
|
|
40 #if str($pminimumlength):
|
|
41 --p-minimum-length $pminimumlength
|
|
42 #end if
|
|
43
|
|
44
|
|
45
|
4
|
46
|
|
47 #if '__sq__' in str($mforwardbarcodescolumn):
|
|
48 #set $mforwardbarcodescolumn_temp = $mforwardbarcodescolumn.replace('__sq__', "'")
|
|
49 #set $mforwardbarcodescolumn = $mforwardbarcodescolumn_temp
|
2
|
50 #end if
|
0
|
51
|
4
|
52 #if '__db__' in str($mforwardbarcodescolumn):
|
|
53 #set $mforwardbarcodescolumn_temp = $mforwardbarcodescolumn.replace('__db__', '"')
|
|
54 #set $mforwardbarcodescolumn = $mforwardbarcodescolumn_temp
|
|
55 #end if
|
|
56
|
|
57
|
|
58
|
|
59
|
|
60 #if '__sq__' in str($mreversebarcodescolumn):
|
|
61 #set $mreversebarcodescolumn_temp = $mreversebarcodescolumn.replace('__sq__', "'")
|
|
62 #set $mreversebarcodescolumn = $mreversebarcodescolumn_temp
|
|
63 #end if
|
|
64
|
|
65 #if '__db__' in str($mreversebarcodescolumn):
|
|
66 #set $mreversebarcodescolumn_temp = $mreversebarcodescolumn.replace('__db__', '"')
|
|
67 #set $mreversebarcodescolumn = $mreversebarcodescolumn_temp
|
|
68 #end if
|
0
|
69
|
9
|
70
|
|
71
|
|
72 #if str($mforwardbarcodescolumn):
|
|
73 --m-forward-barcodes-column="$mforwardbarcodescolumn"
|
|
74 #end if
|
|
75
|
0
|
76 #if str($mreversebarcodescolumn):
|
|
77 --m-reverse-barcodes-column="$mreversebarcodescolumn"
|
|
78 #end if
|
|
79
|
4
|
80
|
|
81
|
9
|
82 #if str($perrorrate):
|
0
|
83 --p-error-rate=$perrorrate
|
|
84 #end if
|
|
85
|
|
86
|
4
|
87
|
0
|
88 --o-per-sample-sequences=opersamplesequences
|
|
89 --o-untrimmed-sequences=ountrimmedsequences
|
|
90 ;
|
|
91
|
|
92 cp opersamplesequences.qza $opersamplesequences;
|
|
93 cp ountrimmedsequences.qza $ountrimmedsequences
|
|
94 ]]></command>
|
|
95 <inputs>
|
9
|
96
|
|
97 <param label="--p-batch-size: INTEGER The number of samples cutadapt demultiplexes Range(0, None) concurrently. Demultiplexing in smaller batches will yield the same result with marginal speed loss, and may solve 'too many files' errors related to sample quantity. Set to '0' to process all samples at once. [default: 0]" name="pbatchsize" optional="True" type="integer" value="0" min="0"/>
|
|
98 <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" value="1" min="1"/>
|
|
99
|
|
100
|
|
101
|
0
|
102 <param format="qza,no_unzip.zip" label="--i-seqs: ARTIFACT MultiplexedPairedEndBarcodeInSequence The paired-end sequences to be demultiplexed. [required]" name="iseqs" optional="False" type="data"/>
|
|
103 <param label="--m-forward-barcodes-column: COLUMN MetadataColumn[Categorical] The sample metadata column listing the per-sample barcodes for the forward reads. [required]" name="mforwardbarcodescolumn" optional="False" type="text"/>
|
|
104 <param label="--m-reverse-barcodes-column: COLUMN MetadataColumn[Categorical] The sample metadata column listing the per-sample barcodes for the reverse reads. [optional]" name="mreversebarcodescolumn" optional="True" type="text"/>
|
|
105
|
|
106 <repeat name="input_files_mforwardbarcodesfile" optional="False" title="--m-forward-barcodes-file">
|
|
107 <param label="--m-forward-barcodes-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
108 </repeat>
|
|
109
|
|
110 <repeat name="input_files_mreversebarcodesfile" optional="False" title="--m-reverse-barcodes-file">
|
|
111 <param label="--m-reverse-barcodes-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
112 </repeat>
|
|
113
|
|
114 <param label="--p-error-rate: PROPORTION Range(0, 1, inclusive_end=True) The level of error tolerance, specified as the maximum allowable error rate. [default: 0.1]" name="perrorrate" optional="True" type="float" min="0" max="1" exclude_max="False" value="0.1"/>
|
|
115 </inputs>
|
|
116 <outputs>
|
|
117 <data format="qza" label="${tool.name} on ${on_string}: persamplesequences.qza" name="opersamplesequences"/>
|
|
118 <data format="qza" label="${tool.name} on ${on_string}: untrimmedsequences.qza" name="ountrimmedsequences"/>
|
|
119 </outputs>
|
|
120 <help><![CDATA[
|
|
121 Demultiplex paired-end sequence data with barcodes in-sequence.
|
9
|
122 ################################################################
|
0
|
123
|
|
124 Demultiplex sequence data (i.e., map barcode reads to sample ids). Barcodes
|
|
125 are expected to be located within the sequence data (versus the header, or
|
|
126 a separate barcode file).
|
|
127
|
|
128 Parameters
|
|
129 ----------
|
|
130 seqs : MultiplexedPairedEndBarcodeInSequence
|
|
131 The paired-end sequences to be demultiplexed.
|
|
132 forward_barcodes : MetadataColumn[Categorical]
|
|
133 The sample metadata column listing the per-sample barcodes for the
|
|
134 forward reads.
|
|
135 reverse_barcodes : MetadataColumn[Categorical], optional
|
|
136 The sample metadata column listing the per-sample barcodes for the
|
|
137 reverse reads.
|
|
138 error_rate : Float % Range(0, 1, inclusive_end=True), optional
|
|
139 The level of error tolerance, specified as the maximum allowable error
|
|
140 rate.
|
9
|
141 batch_size : Int % Range(0, None), optional
|
|
142 The number of samples cutadapt demultiplexes concurrently.
|
|
143 Demultiplexing in smaller batches will yield the same result with
|
|
144 marginal speed loss, and may solve "too many files" errors related to
|
|
145 sample quantity. Set to "0" to process all samples at once.
|
|
146 minimum_length : Int % Range(1, None), optional
|
|
147 Discard reads shorter than specified value. Note, the cutadapt default
|
|
148 of 0 has been overridden, because that value produces empty sequence
|
|
149 records.
|
0
|
150
|
|
151 Returns
|
|
152 -------
|
|
153 per_sample_sequences : SampleData[PairedEndSequencesWithQuality]
|
|
154 The resulting demultiplexed sequences.
|
|
155 untrimmed_sequences : MultiplexedPairedEndBarcodeInSequence
|
|
156 The sequences that were unmatched to barcodes.
|
|
157 ]]></help>
|
|
158 <macros>
|
|
159 <import>qiime_citation.xml</import>
|
|
160 </macros>
|
|
161 <expand macro="qiime_citation"/>
|
|
162 </tool>
|