annotate tools/fastx_toolkit/fastx_barcode_splitter.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="cshl_fastx_barcode_splitter" name="Barcode Splitter">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description></description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <requirements><requirement type="package">fastx_toolkit</requirement></requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <command interpreter="bash">fastx_barcode_splitter_galaxy_wrapper.sh $BARCODE $input "$input.name" "$output.files_path" --mismatches $mismatches --partial $partial $EOL > $output </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param format="txt" name="BARCODE" type="data" label="Barcodes to use" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <param format="fasta,fastqsanger,fastqsolexa,fastqillumina" name="input" type="data" label="Library to split" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <param name="EOL" type="select" label="Barcodes found at">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <option value="--bol">Start of sequence (5' end)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <option value="--eol">End of sequence (3' end)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <param name="mismatches" type="integer" size="3" value="2" label="Number of allowed mismatches" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <param name="partial" type="integer" size="3" value="0" label="Number of allowed barcodes nucleotide deletions" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <!-- Split a FASTQ file -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <param name="BARCODE" value="fastx_barcode_splitter1.txt" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <param name="input" value="fastx_barcode_splitter1.fastq" ftype="fastqsolexa" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <param name="EOL" value="Start of sequence (5' end)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="mismatches" value="2" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <param name="partial" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <output name="output" file="fastx_barcode_splitter1.out" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <data format="html" name="output" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 This tool splits a Solexa library (FASTQ file) or a regular FASTA file into several files, using barcodes as the split criteria.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 --------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 **Barcode file Format**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 Barcode files are simple text files.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 Each line should contain an identifier (descriptive name for the barcode), and the barcode itself (A/C/G/T), separated by a TAB character.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 Example::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 #This line is a comment (starts with a 'number' sign)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 BC1 GATCT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 BC2 ATCGT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 BC3 GTGAT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 BC4 TGTCT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 For each barcode, a new FASTQ file will be created (with the barcode's identifier as part of the file name).
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 Sequences matching the barcode will be stored in the appropriate file.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 One additional FASTQ file will be created (the 'unmatched' file), where sequences not matching any barcode will be stored.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 The output of this tool is an HTML file, displaying the split counts and the file locations.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 **Output Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 .. image:: ./static/fastx_icons/barcode_splitter_output_example.png
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 </tool>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 <!-- FASTX-barcode-splitter is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->