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