annotate ngs-tools_split_by_barcode.xml @ 7:14852ecddbd3 draft

Reload to reset proper ngs-tools 0.1.6 tip.
author cjav
date Thu, 19 Sep 2013 16:13:42 -0400
parents 9b59d2017dd6
children 9fa7fd4d78bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
1506445d0665 New way of providing barcodes to use. Using ngs-tools==0.1.5.
cjav
parents: 4
diff changeset
1 <tool id="ngs-tools_split_by_barcode" name="Barcode Splitter (ngs-tools)" force_history_refresh="True" version="1.0.1">
1
25b250eeccda Uploaded
cjav
parents: 0
diff changeset
2 <description></description>
3
5cb5f350b053 Uploaded
cjav
parents: 2
diff changeset
3 <requirements>
6
9b59d2017dd6 Now using ngs-tools 0.1.6.
cjav
parents: 5
diff changeset
4 <requirement type="package" version="0.1.6">ngs-tools</requirement>
3
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
5
1506445d0665 New way of providing barcodes to use. Using ngs-tools==0.1.5.
cjav
parents: 4
diff changeset
10 #if $barcodes
1506445d0665 New way of providing barcodes to use. Using ngs-tools==0.1.5.
cjav
parents: 4
diff changeset
11 --barcodes $barcodes
1506445d0665 New way of providing barcodes to use. Using ngs-tools==0.1.5.
cjav
parents: 4
diff changeset
12 #end if
1
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." />
5
1506445d0665 New way of providing barcodes to use. Using ngs-tools==0.1.5.
cjav
parents: 4
diff changeset
39 <param name="barcodes" type="text" label="Barcodes to use" help="Comma separated list of barcodes to use. By default all barcodes in the 'Barcodes index' are used." />
4
f40640700846 Uploaded
cjav
parents: 3
diff changeset
40 <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
41 <option value="" selected="true">Yes</option>
f40640700846 Uploaded
cjav
parents: 3
diff changeset
42 <option value="--keep-barcode">No</option>
1
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>