0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_cutadapt_demux-paired" name="qiime cutadapt demux-paired" version="2019.4">
|
|
3 <description> - Demultiplex paired-end sequence data with barcodes in- sequence.</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime cutadapt demux-paired
|
|
9 --i-seqs=$iseqs
|
|
10
|
2
|
11
|
0
|
12 #def list_dict_to_string(list_dict):
|
|
13 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
14 #for d in list_dict[1:]:
|
|
15 #set $file_list = $file_list + ',' + d['additional_input'].__getattr__('file_name')
|
|
16 #end for
|
|
17 #return $file_list
|
|
18 #end def
|
|
19
|
2
|
20 #if $input_files_mforwardbarcodesfile:
|
0
|
21 --m-forward-barcodes-file=$list_dict_to_string("$input_files_mforwardbarcodesfile")
|
2
|
22 #end if
|
|
23
|
|
24 #if $input_files_mreversebarcodesfile:
|
0
|
25 --m-reverse-barcodes-file=$list_dict_to_string("$input_files_mreversebarcodesfile")
|
2
|
26 #end if
|
0
|
27
|
|
28 --m-forward-barcodes-column="$mforwardbarcodescolumn"
|
|
29
|
|
30 #if str($mreversebarcodescolumn):
|
|
31 --m-reverse-barcodes-column="$mreversebarcodescolumn"
|
|
32 #end if
|
|
33
|
|
34 #if $perrorrate:
|
|
35 --p-error-rate=$perrorrate
|
|
36 #end if
|
|
37
|
|
38
|
|
39 --o-per-sample-sequences=opersamplesequences
|
|
40 --o-untrimmed-sequences=ountrimmedsequences
|
|
41 ;
|
|
42
|
|
43 cp opersamplesequences.qza $opersamplesequences;
|
|
44 cp ountrimmedsequences.qza $ountrimmedsequences
|
|
45 ]]></command>
|
|
46 <inputs>
|
|
47 <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"/>
|
|
48 <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"/>
|
|
49 <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"/>
|
|
50
|
|
51 <repeat name="input_files_mforwardbarcodesfile" optional="False" title="--m-forward-barcodes-file">
|
|
52 <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" />
|
|
53 </repeat>
|
|
54
|
|
55 <repeat name="input_files_mreversebarcodesfile" optional="False" title="--m-reverse-barcodes-file">
|
|
56 <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" />
|
|
57 </repeat>
|
|
58
|
|
59 <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"/>
|
|
60 </inputs>
|
|
61 <outputs>
|
|
62 <data format="qza" label="${tool.name} on ${on_string}: persamplesequences.qza" name="opersamplesequences"/>
|
|
63 <data format="qza" label="${tool.name} on ${on_string}: untrimmedsequences.qza" name="ountrimmedsequences"/>
|
|
64 </outputs>
|
|
65 <help><![CDATA[
|
|
66 Demultiplex paired-end sequence data with barcodes in-sequence.
|
|
67 ###############################################################
|
|
68
|
|
69 Demultiplex sequence data (i.e., map barcode reads to sample ids). Barcodes
|
|
70 are expected to be located within the sequence data (versus the header, or
|
|
71 a separate barcode file).
|
|
72
|
|
73 Parameters
|
|
74 ----------
|
|
75 seqs : MultiplexedPairedEndBarcodeInSequence
|
|
76 The paired-end sequences to be demultiplexed.
|
|
77 forward_barcodes : MetadataColumn[Categorical]
|
|
78 The sample metadata column listing the per-sample barcodes for the
|
|
79 forward reads.
|
|
80 reverse_barcodes : MetadataColumn[Categorical], optional
|
|
81 The sample metadata column listing the per-sample barcodes for the
|
|
82 reverse reads.
|
|
83 error_rate : Float % Range(0, 1, inclusive_end=True), optional
|
|
84 The level of error tolerance, specified as the maximum allowable error
|
|
85 rate.
|
|
86
|
|
87 Returns
|
|
88 -------
|
|
89 per_sample_sequences : SampleData[PairedEndSequencesWithQuality]
|
|
90 The resulting demultiplexed sequences.
|
|
91 untrimmed_sequences : MultiplexedPairedEndBarcodeInSequence
|
|
92 The sequences that were unmatched to barcodes.
|
|
93 ]]></help>
|
|
94 <macros>
|
|
95 <import>qiime_citation.xml</import>
|
|
96 </macros>
|
|
97 <expand macro="qiime_citation"/>
|
|
98 </tool>
|