annotate ngs-tools_split_by_barcode.xml @ 4:f40640700846 draft

Uploaded
author cjav
date Fri, 06 Sep 2013 14:15:03 -0400
parents 5cb5f350b053
children 1506445d0665
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>
3
5cb5f350b053 Uploaded
cjav
parents: 2
diff changeset
3 <requirements>
5cb5f350b053 Uploaded
cjav
parents: 2
diff changeset
4 <requirement type="package" version="0.1.4">ngs-tools</requirement>
5cb5f350b053 Uploaded
cjav
parents: 2
diff changeset
5 </requirements>
1
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
6 <command>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
7 ngs-tools split-by-barcode
4
f40640700846 Uploaded
cjav
parents: 3
diff changeset
8 $trim_barcode $input_format.format
1
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
9 --barcode-size $barcode_length --max-distance $max_distance
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
10 #for $i in $barcodes
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
11 --barcode ${i.barcode}
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
12 #end for
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
13 --report $output1 --galaxy $output1.id --output $__new_file_path__
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
14 $barcode_index
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
15 #for $i in $input_format.inputs
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
16 ${i.input}
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
17 #end for
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
18 </command>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
19
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
20 <inputs>
2
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
21 <conditional name="input_format">
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
22 <param name="format" type="select" label="Input format">
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
23 <option value="--fastq" selected="true">Fastq</option>
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
24 <option value="">Fasta</option>
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
25 </param>
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
26 <when value="--fastq">
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
27 <repeat name="inputs" title="Dataset" help="Datasets to split.">
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
28 <param name="input" type="data" label="Dataset to split" format="fastq,fastqsanger,fastqsolexa,fastqillumina" />
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
29 </repeat>
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
30 </when>
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
31 <when value="">
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
32 <repeat name="inputs" title="Dataset" help="Datasets to split.">
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
33 <param name="input" type="data" label="Dataset to split" format="fasta" />
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
34 </repeat>
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
35 </when>
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
36 </conditional>
5a9ba0f9ea6f Uploaded
cjav
parents: 1
diff changeset
37 <param format="tabular" name="barcode_index" type="data" label="Barcodes index" help="See below for description." />
1
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
38 <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
39 <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
40 <param name="barcode" type="text" label="Barcode to use" />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
41 </repeat>
4
f40640700846 Uploaded
cjav
parents: 3
diff changeset
42 <param name="trim_barcode" type="select" label="Trim the barcode" help="By default barcodes are trimmed from the resulting splitted datasets">
f40640700846 Uploaded
cjav
parents: 3
diff changeset
43 <option value="" selected="true">Yes</option>
f40640700846 Uploaded
cjav
parents: 3
diff changeset
44 <option value="--keep-barcode">No</option>
1
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
45 </param>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
46 <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
47 </inputs>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
48
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
49 <outputs>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
50 <data format="interval" name="output1" />
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
51 </outputs>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
52 <help>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
53
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
54 **What it does**
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
55
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
56 This tool splits FASTQ or FASTA datasets into several datasets, using barcodes as the split criteria.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
57
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
58 --------
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
59
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
60 **Barcode index format**
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
61
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
62 Barcode index datasets are simple tab separated files.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
63 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
64 Example::
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
65
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
66 RL001 ACACGACGACT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
67 RL002 ACACGTAGTAT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
68 RL003 ACACTACTCGT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
69 RL004 ACGACACGTAT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
70 RL005 ACGAGTAGACT
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
71
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
72 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
73 Sequences matching the barcode will be stored in the appropriate dataset.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
74
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
75 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
76
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
77 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
78
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
79 ------
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
80
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
81 This tool is based on `ngs-tools`__ by Carlos Borroto &lt;carlos.borroto@gmail.com&gt;.
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
82
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
83 .. __: https://github.com/cjav/ngs-tools/
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
84
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
85 </help>
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
86 </tool>