annotate fastx_trimmer.xml @ 1:e7c65e398bdd draft default tip

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