annotate fastx_clipper.xml @ 0:78a7d28f2a15 draft

Uploaded
author idot
date Wed, 10 Jul 2013 06:13:48 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
1 <tool id="cshl_fastx_clipper_ng" name="Clip" version="1.0.1" >
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
2 <description>adapter sequences</description>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
3 <command>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
4 cat '$input' |
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
5 fastx_clipper
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
6 #if $input.ext == "fastqsanger":
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
7 -Q 33
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
8 #elif $input.ext == "fastq":
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
9 -Q 64
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
10 #end if
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
11 -l $minlength -a '$clip_source.clip_sequence' -d $keepdelta -o '$output' -v $KEEP_N $DISCARD_OPTIONS
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
12 </command>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
13
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
14 <inputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
15 <param format="fasta,fastq,fastqsanger" name="input" type="data" label="Library to clip" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
16
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
17 <param name="minlength" size="4" type="integer" value="15">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
18 <label>Minimum sequence length (after clipping, sequences shorter than this length will be discarded)</label>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
19 </param>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
20
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
21 <conditional name="clip_source">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
22 <param name="clip_source_list" type="select" label="Source">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
23 <option value="prebuilt" selected="true">Standard (select from the list below)</option>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
24 <option value="user">Enter custom sequence</option>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
25 </param>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
26
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
27 <when value="user">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
28 <param name="clip_sequence" size="30" label="Enter custom clipping sequence" type="text" value="AATTGGCC" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
29 </when>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
30
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
31 <when value="prebuilt">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
32 <param name="clip_sequence" type="select" label="Choose Adapter">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
33 <options from_file="fastx_clipper_sequences.txt">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
34 <column name="name" index="1"/>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
35 <column name="value" index="0"/>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
36 </options>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
37 </param>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
38 </when>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
39 </conditional>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
40
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
41 <param name="keepdelta" size="2" type="integer" value="0">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
42 <label>enter non-zero value to keep the adapter sequence and x bases that follow it</label>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
43 <help>use this for hairpin barcoding. keep at 0 unless you know what you're doing.</help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
44 </param>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
45
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
46 <param name="KEEP_N" type="select" label="Discard sequences with unknown (N) bases">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
47 <option value="">Yes</option>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
48 <option value="-n">No</option>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
49 </param>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
50
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
51 <param name="DISCARD_OPTIONS" type="select" label="Output options">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
52 <option value="-c">Output only clipped sequences (i.e. sequences which contained the adapter)</option>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
53 <option value="-C">Output only non-clipped sequences (i.e. sequences which did not contained the adapter)</option>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
54 <option value="">Output both clipped and non-clipped sequences</option>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
55 </param>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
56
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
57 </inputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
58 <tests>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
59 <test>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
60 <param name="input" value="fastx_clipper1.fastq" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
61 <param name="maxmismatches" value="2" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
62 <param name="minlength" value="15" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
63 <param name="clip_source_list" value="user" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
64 <param name="clip_sequence" value="CAATTGGTTAATCCCCCTATATA" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
65 <param name="keepdelta" value="0" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
66 <param name="KEEP_N" value="No" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
67 <param name="DISCARD_OPTIONS" value="Output only clipped sequences (i.e. sequences which contained the adapter)" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
68 <output name="output" file="fastx_clipper1a.out" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
69 </test>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
70 </tests>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
71
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
72 <outputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
73 <data format="input" name="output" metadata_source="input"
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
74 />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
75 </outputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
76
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
77 <help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
78 **What it does**
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
79
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
80 This tool clips adapters from the 3'-end of the sequences in a FASTA/FASTQ file.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
81
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
82 --------
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
83
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
84
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
85 **Clipping Illustration:**
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
86
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
87 .. image:: ../static/fastx_icons/fastx_clipper_illustration.png
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
88
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
89
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
90
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
91
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
92
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
93
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
94
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
95
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
96 **Clipping Example:**
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
97
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
98 .. image:: ../static/fastx_icons/fastx_clipper_example.png
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
99
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
100
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
101
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
102 **In the above example:**
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
103
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
104 * Sequence no. 1 was discarded since it wasn't clipped (i.e. didn't contain the adapter sequence). (**Output** parameter).
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
105 * Sequence no. 5 was discarded --- it's length (after clipping) was shorter than 15 nt (**Minimum Sequence Length** parameter).
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
106
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
107
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
108 ------
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
109
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
110 This tool is based on `FASTX-toolkit`__ by Assaf Gordon.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
111
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
112 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
113
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
114 </help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
115 </tool>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
116
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
117 <!-- FASTX-Clipper is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->