comparison stripBarcode.xml @ 0:0475e4175855 draft default tip

planemo upload commit 81ece2551cea27cbd0e718ef5b7a2fe8d4abd071-dirty
author yqiancolumbia
date Mon, 30 Apr 2018 05:25:11 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0475e4175855
1 <tool id="stripBarcode" name="Strip 5' degenerate barcode">
2 <description></description>
3 <command interpreter="perl">
4 /home/galaxy/tools/CTK/stripBarcode.pl -len $Len -format $InputFormat
5 #if $LinkerStart.startRequired == "yes":
6 --barcode-start-with $LinkerStart.startwith
7 #end if
8 #if $LinkerEnd.endRequired == "yes":
9 --barcode-end-with $LinkerEnd.endwith
10 #end if
11 -v $input $output
12 </command>
13
14 <inputs>
15 <param name="InputFormat" type="select" label="Input FASTA or FASTQ format?">
16 <option value="fastq">FASTQ</option>
17 <option value="fasta">FASTA</option>
18 </param>
19 <param format="fastq,fastq.gz" name="input" type="data" label="Input file that contains 5' degenerate barcodes (.gz file accepted)">
20 <change_format>
21 <when input="InputFormat" value="fasta" format="fasta,fasta.gz" />
22 </change_format>
23 </param>
24
25 <param name="Len" type="integer" value="" label="Length of degenerate barcode (also include sample index)" />
26
27 <conditional name="LinkerStart">
28 <param name="startRequired" type="select" label="Filter sequences based on the starting nucleotides in the barcode">
29 <option value="yes">Yes</option>
30 <option value="no" selected="True">No</option>
31 </param>
32 <when value="yes">
33 <param name="startwith" type="text" value="" label="Starting nucleotides (case sensitive)" />
34 </when>
35 <when value="no">
36 </when>
37 </conditional>
38
39 <conditional name="LinkerEnd">
40 <param name="endRequired" type="select" label="Filter sequences based on the ending nucleotides in the barcode">
41 <option value="yes">Yes</option>
42 <option value="no" selected="True">No</option>
43 </param>
44 <when value="yes">
45 <param name="endwith" type="text" value="" label="Ending nucleotides (case sensitive)" />
46 </when>
47 <when value="no">
48 </when>
49 </conditional>
50 </inputs>
51
52 <outputs>
53 <data name="output" format="fastq" label="Strip 5' degenerate barcode on ${on_string}">
54 </data>
55 </outputs>
56 <help>
57
58 .. class:: infomark
59
60 **What this tool does**
61
62 The 5' degenerate barcode is used to distinguish PCR duplicates from bona fide unique tags mapped to the same coordinates. This tool will strip random barcode sequences and attach that in sequence ids.
63
64 It will take as input files in FASTQ format that contains 5' degenerate barcodes and output files in FASTQ format with barcodes removed and attached to sequence ids.
65
66 If you have extra barcodes next to the degenerate barcode, include the barcode in the length.
67
68 Examples::
69
70 >seq1
71 ACGTATTTTTTT
72
73 will become::
74
75 >seq1#ACGTA
76 TTTTTTT
77
78 -----
79
80 **Filter sequences**
81
82 You can also filter your sequences based on the starting or ending nucleotides in the barcode, which is useful for quality control purposes or multiplex samples.
83 </help>
84 </tool>