annotate tools/fastx_toolkit/fastx_trimmer.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_trimmer" name="Trim sequences">
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>zcat -f '$input' | fastx_trimmer -v -f $first -l $last -o $output
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 #if $input.ext == "fastqsanger":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 -Q 33
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <param format="fasta,fastqsolexa,fastqsanger" name="input" type="data" label="Library to clip" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <param name="first" size="4" type="integer" value="1">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <label>First base to keep</label>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <param name="last" size="4" type="integer" value="21">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <label>Last base to keep</label>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <!-- Trim a FASTA file - remove first four bases (e.g. a barcode) -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <param name="input" value="fastx_trimmer1.fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <param name="first" value="5"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="last" value="36"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <output name="output" file="fastx_trimmer1.out" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <!-- Trim a FASTQ file - remove last 9 bases (e.g. keep only miRNA length sequences) -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <param name="input" value="fastx_trimmer2.fastq" ftype="fastqsolexa"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <param name="first" value="1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <param name="last" value="27"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <output name="output" file="fastx_trimmer2.out" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <data format="input" name="output" metadata_source="input" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 This tool trims (cut bases from) sequences in a FASTA/Q file.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 --------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 Input Fasta file (with 36 bases in each sequences)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 >1-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 TATGGTCAGAAACCATATGCAGAGCCTGTAGGCACC
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 >2-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 CAGCGAGGCTTTAATGCCATTTGGCTGTAGGCACCA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 Trimming with First=1 and Last=21, we get a FASTA file with 21 bases in each sequences (starting from the first base)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 >1-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 TATGGTCAGAAACCATATGCA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 >2-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 CAGCGAGGCTTTAATGCCATT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 Trimming with First=6 and Last=10, will generate a FASTA file with 5 bases (bases 6,7,8,9,10) in each sequences::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 >1-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 TCAGA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 >2-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 AGGCT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 This tool is based on `FASTX-toolkit`__ by Assaf Gordon.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 </tool>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 <!-- FASTX-Trimmer is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->