comparison extract_barcodes.xml @ 0:c7eeac78cb64 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit 3b54163c4f7daff76fcc589c4a9057bb03904380
author iuc
date Sat, 05 Aug 2017 07:28:39 -0400
parents
children e149f41155e1
comparison
equal deleted inserted replaced
-1:000000000000 0:c7eeac78cb64
1 <tool id="qiime_extract_barcodes" name="Format Fastq sequences and barcode data" version="@WRAPPER_VERSION@.0">
2 <description>(extract_barcodes)</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <version_command>extract_barcodes.py --version</version_command>
8 <command detect_errors="aggressive"><![CDATA[
9 extract_barcodes.py
10 --fastq1 '$fastq1'
11 --bc1_len '$bc1_len'
12 $rev_comp_bc1
13 --input_type '$type.input_type'
14 #if $type.input_type == 'barcode_paired_end'
15 --fastq2 '$type.fastq2'
16 $type.rev_comp_bc2
17 --bc2_len '$type.bc2_len'
18 #elif $type.input_type == 'barcode_paired_stitched'
19 $type.switch_bc_order
20 #if '$type.bc2_len' != ''
21 --bc2_len '$type.bc2_len'
22 #end if
23 #elif $type.input_type == 'barcode_in_label'
24 --char_delineator '$type.char_delineator'
25 #if $type.fastq2
26 --fastq2 '$type.fastq2'
27 $type.rev_comp_bc2
28 #if '$type.bc2_len' != ''
29 --bc2_len '$type.bc2_len'
30 #end if
31 #end if
32 #end if
33 -o extract_barcodes
34 #if $mapping_fp
35 --mapping_fp '$mapping_fp'
36 #end if
37 $attempt_read_reorientation
38 $disable_header_match
39 ]]></command>
40 <inputs>
41 <param argument="--fastq1" type="data" format="fastq,fastqsanger,fastqsolexa" label="Input fastq filepath" help="This file is considered read 1"/>
42 <param argument="--rev_comp_bc1" type="boolean" truevalue="--rev_comp_bc1" falsevalue="" checked="False" label="Reverse complement barcode 1 before writing?"/>
43 <param argument="--bc1_len" type="integer" value="6" label="Length, in base pairs, of barcode 1" help="This applies to the –fastq1 file and all options specified by –input_type"/>
44 <conditional name="type">
45 <param argument="--input_type" type="select" label="Input type">
46 <option value="barcode_single_end">barcode_single_end: Input is a single fastq file, that starts with the barcode sequence</option>
47 <option value="barcode_paired_end">barcode_paired_end: Input is a pair of fastq files (–fastq1 and –fastq2) that each begin with a barcode sequence (The barcode for fastq1 will be written first, followed by the barcode from fastq2)</option>
48 <option value="barcode_paired_stitched">barcode_paired_stitched: Input is a single fastq file that has barcodes at the beginning and end (The barcode from the beginning of the read will be written first followed by the barcode from the end of the read, unless the order is switched with –switch_bc_order)</option>
49 <option value="barcode_in_label">barcode_in_label: Input is a one (–fastq1) or two (–fastq2) fastq files with the barcode written in the labels</option>
50 </param>
51 <when value="barcode_single_end"/>
52 <when value="barcode_paired_end">
53 <param argument="--fastq2" type="data" format="fastq,fastqsanger,fastqsolexa" label="Input fastq filepath" help="This file is considered read 2"/>
54 <param argument="--bc2_len" type="integer" value="6" label="Length, in base pairs, of barcode 2" help="This applies to the –fastq2 file and options 'barcode_paired_end', 'barcode_paired_stitched', and 'barcode_in_label' for the –input_type"/>
55 <param argument="--rev_comp_bc2" type="boolean" truevalue="--rev_comp_bc2" falsevalue="" checked="False" label="Reverse complement barcode 2 before writing?"/>
56 </when>
57 <when value="barcode_paired_stitched">
58 <param argument="--switch_bc_order" type="boolean" truevalue="--switch_bc_order" falsevalue="" checked="False" label="Reverse barcode order written?"/>
59 <param argument="--bc2_len" type="integer" value="6" optional="true" label="Length, in base pairs, of barcode 2" help="This applies to the –fastq2 file and options 'barcode_paired_end', 'barcode_paired_stitched', and 'barcode_in_label' for the –input_type" />
60 </when>
61 <when value="barcode_single_end"/>
62 <when value="barcode_in_label">
63 <param argument="--fastq2" type="data" format="fastq,fastqsanger,fastqsolexa" optional="true" label="Input fastq filepath" help="This file is considered read 2"/>
64 <param argument="--bc2_len" type="integer" value="6" optional="true" label="Length, in base pairs, of barcode 2" help="This applies to the –fastq2 file and options 'barcode_paired_end', 'barcode_paired_stitched', and 'barcode_in_label' for the –input_type" />
65 <param argument="--rev_comp_bc2" type="boolean" truevalue="--rev_comp_bc2" falsevalue="" checked="False" label="Reverse complement barcode 2 before writing?"/>
66 <param argument="--char_delineator" type="text" value=":" label="Character in fastq label that should immediately precede the barcode sequence" help="The length of the barcode is specified by the –bc1_len (and optionally –bc2_len if paired end files are used) parameter"/>
67 </when>
68 </conditional>
69 <param argument="--mapping_fp" type="data" format="txt,tabular,tsv,csv" label="Mapping files" help="NOTE: Must contain a header line indicating SampleID in the first column and BarcodeSequence in the second, LinkerPrimerSequence in the third and a ReversePrimer column before the final Description column. Needed for –attempt_read_orientation option." optional="True"/>
70 <param argument="--attempt_read_reorientation" type="boolean" truevalue="--attempt_read_reorientation" falsevalue="" checked="False" label="Attempt to search for the forward and reverse primer in the read and adjust the sequence orientation to match the orientation of the forward primer?" help="An exact match for the forward and reverse complemented versions of the primers are tested for, and sequences are reverse complemented, if necessary, before writing. Sequences without an exact match are written to a separate output fastq file, labeled as _no_primer_match.fastq."/>
71 <param argument="--disable_header_match" type="boolean" truevalue="--disable_header_match" falsevalue="" checked="False" label="Suppress header matching between input fastq files?"/>
72 </inputs>
73 <outputs>
74 <data name="reads" format="fastq" from_work_dir="extract_barcodes/reads.fastq" label="${tool.name} on ${on_string}: Reads">
75 <filter>type['input_type'] != 'barcode_in_label' and type['input_type'] != 'barcode_paired_end'</filter>
76 </data>
77 <data name="reads1" format="fastq" from_work_dir="extract_barcodes/reads1.fastq" label="${tool.name} on ${on_string}: Reads 1">
78 <filter>type['input_type'] != 'barcode_in_label' and type['input_type'] == 'barcode_paired_end'</filter>
79 </data>
80 <data name="reads2" format="fastq" from_work_dir="extract_barcodes/reads2.fastq" label="${tool.name} on ${on_string}: Reads 2">
81 <filter>type['input_type'] != 'barcode_in_label' and type['input_type'] == 'barcode_paired_end'</filter>
82 </data>
83 <data name="barcodes" format="fastq" from_work_dir="extract_barcodes/barcodes.fastq" label="${tool.name} on ${on_string}: Barcodes"/>
84 </outputs>
85 <tests>
86 <test>
87 <param name="fastq1" value="extract_barcodes/inseqs.fastq"/>
88 <param name="bc1_len" value="6"/>
89 <param name="rev_comp_bc1" value="--rev_comp_bc1"/>
90 <conditional name="type">
91 <param name="input_type" value="barcode_single_end"/>
92 </conditional>
93 <param name="attempt_read_reorientation" value=""/>
94 <param name="disable_header_match" value=""/>
95 <output name="reads" ftype="fastq" md5="8412379e70122577bc47c32be1410b49"/>
96 <output name="barcodes" ftype="fastq" md5="52231eadb6e071e191ba07401e929e65"/>
97 </test>
98 <test>
99 <param name="fastq1" value="extract_barcodes/inseqs_R1.fastq"/>
100 <param name="bc1_len" value="6"/>
101 <param name="rev_comp_bc1" value=""/>
102 <conditional name="type">
103 <param name="input_type" value="barcode_paired_end"/>
104 <param name="fastq2" value="extract_barcodes/inseqs_R2.fastq"/>
105 <param name="bc2_len" value="6"/>
106 <param name="rev_comp_bc2" value=""/>
107 </conditional>
108 <param name="attempt_read_reorientation" value=""/>
109 <param name="disable_header_match" value=""/>
110 <output name="reads1" ftype="fastq" md5="f675c3eb8a47ec8b757eaac9f51ab846"/>
111 <output name="reads2" ftype="fastq" md5="45abf363c68012d28dd45b3c8f94ab6a"/>
112 <output name="barcodes" ftype="fastq" md5="dcc2443f9dbea7e8d4801a70e7424e3b"/>
113 </test>
114 <test>
115 <param name="fastq1" value="extract_barcodes/inseqs_R1.fastq"/>
116 <param name="bc1_len" value="6"/>
117 <param name="rev_comp_bc1" value=""/>
118 <conditional name="type">
119 <param name="input_type" value="barcode_paired_end"/>
120 <param name="fastq2" value="extract_barcodes/inseqs_R2.fastq"/>
121 <param name="bc2_len" value="6"/>
122 <param name="rev_comp_bc2" value=""/>
123 </conditional>
124 <param name="mapping_fp" value="extract_barcodes/mapping_data.txt"/>
125 <param name="attempt_read_reorientation" value=""/>
126 <param name="disable_header_match" value="--disable_header_match"/>
127 <output name="reads1" ftype="fastq" md5="f675c3eb8a47ec8b757eaac9f51ab846"/>
128 <output name="reads2" ftype="fastq" md5="45abf363c68012d28dd45b3c8f94ab6a"/>
129 <output name="barcodes" ftype="fastq" md5="dcc2443f9dbea7e8d4801a70e7424e3b"/>
130 </test>
131 <test>
132 <param name="fastq1" value="extract_barcodes/inseqs_R1.fastq"/>
133 <param name="bc1_len" value="6"/>
134 <param name="rev_comp_bc1" value=""/>
135 <conditional name="type">
136 <param name="input_type" value="barcode_paired_stitched"/>
137 <param name="switch_bc_order" value=""/>
138 <param name="bc2_len" value="8"/>
139 </conditional>
140 <param name="attempt_read_reorientation" value=""/>
141 <param name="disable_header_match" value=""/>
142 <output name="reads" ftype="fastq" md5="e04b45af9800402feba548c3e7393bff"/>
143 <output name="barcodes" ftype="fastq" md5="9c9d9beacfd5862ba885012501e1f560"/>
144 </test>
145 <test>
146 <param name="fastq1" value="extract_barcodes/inseqs_R1.fastq"/>
147 <param name="bc1_len" value="6"/>
148 <param name="rev_comp_bc1" value=""/>
149 <conditional name="type">
150 <param name="input_type" value="barcode_in_label"/>
151 <param name="char_delineator" value="#"/>
152 </conditional>
153 <param name="attempt_read_reorientation" value=""/>
154 <param name="disable_header_match" value=""/>
155 <output name="barcodes" ftype="fastq" md5="ce4168051264dbfc6d11a2dd75af27ec"/>
156 </test>
157 </tests>
158 <help><![CDATA[
159 **What it does**
160
161 This script is designed to format fastq sequence and barcode data so they are compatible with split_libraries_fastq.py.
162
163 A variety of data formats are possible, depending upon how one utilized sequencing primers, designed primer constructs (e.g., partial barcodes on each end of the read), or processed the data (e.g., barcodes were put into the sequence labels rather than the reads). See various input examples below.
164
165
166 More information about this tool is available on
167 `QIIME documentation <http://qiime.org/scripts/extract_barcodes.html>`_.
168 ]]></help>
169 <citations>
170 <expand macro="citations"/>
171 </citations>
172 </tool>