annotate ngs-tools_split_by_barcode.xml @ 1:25b250eeccda draft

Uploaded
author cjav
date Fri, 06 Sep 2013 13:06:50 -0400
parents ba7671c60205
children 5a9ba0f9ea6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
1 <tool id="ngs-tools_split_by_barcode" name="Barcode Splitter (ngs-tools)" force_history_refresh="True">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
2 <description></description>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
3 <requirements><requirement type="package">ngs-tools</requirement></requirements>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
4 <command>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
5 ngs-tools split-by-barcode
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
6 $keep_barcode $input_format.format
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
7 --barcode-size $barcode_length --max-distance $max_distance
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
8 #for $i in $barcodes
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
9 --barcode ${i.barcode}
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
10 #end for
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
11 --report $output1 --galaxy $output1.id --output $__new_file_path__
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
12 $barcode_index
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
13 #for $i in $input_format.inputs
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
14 ${i.input}
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
15 #end for
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
16 </command>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
17
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
18 <inputs>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
19 <conditional name="input_format">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
20 <param name="format" type="select" label="Input format">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
21 <option value="--fastq" selected="true">Fastq</option>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
22 <option value="">Fasta</option>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
23 </param>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
24 <when value="--fastq">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
25 <repeat name="inputs" title="Dataset" help="Datasets to split.">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
26 <param name="input" type="data" label="Dataset to split" format="fastq,fastqsanger,fastqsolexa,fastqillumina" />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
27 </repeat>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
28 </when>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
29 <when value="">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
30 <repeat name="inputs" title="Dataset" help="Datasets to split.">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
31 <param name="input" type="data" label="Dataset to split" format="fasta" />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
32 </repeat>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
33 </when>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
34 </conditional>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
35 <param format="tabular" name="barcode_index" type="data" label="Barcodes index" help="See below for description." />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
36 <param name="barcode_length" type="integer" size="3" value="11" label="Barcode length" help="Please specify the barcode length." />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
37 <repeat name="barcodes" title="Barcode" help="Barcodes to use. By default all barcodes with the correct length in the index are used. By using this option you can limit which ones to use.">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
38 <param name="barcode" type="text" label="Barcode to use" />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
39 </repeat>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
40 <param name="keep_barcode" type="select" label="Do not trim the barcode" help="By default barcodes are trimmed from the resulting splitted datasets">
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
41 <option value="" selected="true">No</option>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
42 <option value="--keep-barcode">Yes</option>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
43 </param>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
44 <param name="max_distance" type="integer" size="3" value="2" label="Number of allowed polymorphisms" help="Max Levenshtein's distance when looking for mutated barcodes." />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
45 </inputs>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
46
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
47 <outputs>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
48 <data format="interval" name="output1" />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
49 </outputs>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
50 <help>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
51
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
52 **What it does**
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
53
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
54 This tool splits FASTQ or FASTA datasets into several datasets, using barcodes as the split criteria.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
55
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
56 --------
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
57
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
58 **Barcode index format**
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
59
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
60 Barcode index datasets are simple tab separated files.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
61 Each line should contain an identifier (descriptive name for the barcode), and the barcode itself (A/C/G/T), separated by a TAB character.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
62 Example::
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
63
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
64 RL001 ACACGACGACT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
65 RL002 ACACGTAGTAT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
66 RL003 ACACTACTCGT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
67 RL004 ACGACACGTAT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
68 RL005 ACGAGTAGACT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
69
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
70 For each barcode, a new FASTQ or FASTA dataset will be created (with the barcode's identifier as part of the dataset name).
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
71 Sequences matching the barcode will be stored in the appropriate dataset.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
72
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
73 One additional FASTQ or FASTA dataset will be created (the 'Unassigned' dataset), where sequences not matching any barcode will be stored.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
74
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
75 The output of this tool is one history dataset per each barcode provided plus a report with the split counts.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
76
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
77 ------
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
78
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
79 This tool is based on `ngs-tools`__ by Carlos Borroto &lt;carlos.borroto@gmail.com&gt;.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
80
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
81 .. __: https://github.com/cjav/ngs-tools/
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
82
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
83 </help>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
84 </tool>