0
|
1 <?xml version="1.0" ?>
|
9
|
2 <tool id="qiime_cutadapt_demux-single" name="qiime cutadapt demux-single" version="2019.7">
|
0
|
3 <description> - Demultiplex single-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-single
|
|
9
|
|
10 --i-seqs=$iseqs
|
4
|
11
|
|
12
|
9
|
13 #if str($pbatchsize):
|
|
14 --p-batch-size $pbatchsize
|
|
15 #end if
|
|
16
|
|
17 #if str($pminimumlength):
|
|
18 --p-minimum-length $pminimumlength
|
|
19 #end if
|
|
20
|
|
21
|
|
22
|
|
23
|
|
24
|
|
25 #if $input_files_mbarcodesfile:
|
|
26 #def list_dict_to_string(list_dict):
|
|
27 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
28 #for d in list_dict[1:]:
|
|
29 #set $file_list = $file_list + ' --m-barcodes-file=' + d['additional_input'].__getattr__('file_name')
|
|
30 #end for
|
|
31 #return $file_list
|
|
32 #end def
|
|
33 --m-barcodes-file=$list_dict_to_string($input_files_mbarcodesfile)
|
|
34 #end if
|
|
35
|
|
36
|
4
|
37
|
|
38 #if '__sq__' in str($mbarcodescolumn):
|
|
39 #set $mbarcodescolumn_temp = $mbarcodescolumn.replace('__sq__', "'")
|
|
40 #set $mbarcodescolumn = $mbarcodescolumn_temp
|
|
41 #end if
|
|
42
|
0
|
43 --m-barcodes-column="$mbarcodescolumn"
|
4
|
44
|
|
45
|
0
|
46
|
9
|
47 #if str($perrorrate):
|
|
48 --p-error-rate=$perrorrate
|
2
|
49 #end if
|
0
|
50
|
4
|
51
|
9
|
52 --o-per-sample-sequences=opersamplesequences
|
|
53 --o-untrimmed-sequences=ountrimmedsequences
|
0
|
54 ;
|
|
55
|
|
56 cp opersamplesequences.qza $opersamplesequences;
|
|
57 cp ountrimmedsequences.qza $ountrimmedsequences
|
|
58 ]]></command>
|
|
59 <inputs>
|
9
|
60
|
|
61 <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"/>
|
|
62 <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"/>
|
|
63
|
|
64
|
0
|
65 <param format="qza,no_unzip.zip" label="--i-seqs: ARTIFACT MultiplexedSingleEndBarcodeInSequence The single-end sequences to be demultiplexed. [required]" name="iseqs" optional="False" type="data"/>
|
4
|
66 <repeat name="input_files_mbarcodesfile" optional="False" title="--m-barcodes-file">
|
0
|
67 <param label="--m-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" />
|
|
68 </repeat>
|
|
69 <param label="--m-barcodes-column: COLUMN MetadataColumn[Categorical] The sample metadata column listing the per-sample barcodes. [required]" name="mbarcodescolumn" optional="False" type="text"/>
|
|
70 <param label="--p-error-rate: PROPORTION Range(0, 1, inclusive_end=True) The level of error tolerance, specified as the maximum allowable error rate. The default value specified by cutadapt is 0.1 (=10%), which is greater than `demux emp-*`, which is 0.0 (=0%). [default: 0.1]" name="perrorrate" optional="True" type="float" min="0" max="1" exclude_max="False" value="0.1"/>
|
|
71 </inputs>
|
|
72 <outputs>
|
|
73 <data format="qza" label="${tool.name} on ${on_string}: persamplesequences.qza" name="opersamplesequences"/>
|
|
74 <data format="qza" label="${tool.name} on ${on_string}: untrimmedsequences.qza" name="ountrimmedsequences"/>
|
|
75 </outputs>
|
|
76 <help><![CDATA[
|
|
77 Demultiplex single-end sequence data with barcodes in-sequence.
|
|
78 ###############################################################
|
|
79
|
|
80 Demultiplex sequence data (i.e., map barcode reads to sample ids). Barcodes
|
|
81 are expected to be located within the sequence data (versus the header, or
|
|
82 a separate barcode file).
|
|
83
|
|
84 Parameters
|
|
85 ----------
|
|
86 seqs : MultiplexedSingleEndBarcodeInSequence
|
|
87 The single-end sequences to be demultiplexed.
|
|
88 barcodes : MetadataColumn[Categorical]
|
|
89 The sample metadata column listing the per-sample barcodes.
|
|
90 error_rate : Float % Range(0, 1, inclusive_end=True), optional
|
|
91 The level of error tolerance, specified as the maximum allowable error
|
|
92 rate. The default value specified by cutadapt is 0.1 (=10%), which is
|
|
93 greater than `demux emp-*`, which is 0.0 (=0%).
|
9
|
94 batch_size : Int % Range(0, None), optional
|
|
95 The number of samples cutadapt demultiplexes concurrently.
|
|
96 Demultiplexing in smaller batches will yield the same result with
|
|
97 marginal speed loss, and may solve "too many files" errors related to
|
|
98 sample quantity. Set to "0" to process all samples at once.
|
|
99 minimum_length : Int % Range(1, None), optional
|
|
100 Discard reads shorter than specified value. Note, the cutadapt default
|
|
101 of 0 has been overridden, because that value produces empty sequence
|
|
102 records.
|
0
|
103
|
|
104 Returns
|
|
105 -------
|
|
106 per_sample_sequences : SampleData[SequencesWithQuality]
|
|
107 The resulting demultiplexed sequences.
|
|
108 untrimmed_sequences : MultiplexedSingleEndBarcodeInSequence
|
|
109 The sequences that were unmatched to barcodes.
|
|
110 ]]></help>
|
|
111 <macros>
|
|
112 <import>qiime_citation.xml</import>
|
|
113 </macros>
|
|
114 <expand macro="qiime_citation"/>
|
|
115 </tool>
|