annotate fasta_formatter.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_fasta_formatter" name="FASTA Width">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
2 <description>formatter</description>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
3 <!--
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
4 Note:
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
5 fasta_formatter also has a tabular output mode (-t),
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
6 but Galaxy already contains such a tool, so no need
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
7 to offer the user a duplicated tool.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
8
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
9 So this XML tool only changes the width (line-wrapping) of a
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
10 FASTA file.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
11 -->
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
12 <command>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
13 cat '$input' |
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
14 fasta_formatter -w $width -o '$output'</command>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
15 <inputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
16 <param format="fasta" name="input" type="data" label="Library to re-format" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
17
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
18 <param name="width" type="integer" value="0" label="New width for nucleotides strings" help="Use 0 for single line output." />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
19 </inputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
20
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
21 <tests>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
22 <test>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
23 <!-- Re-format a FASTA file into a single line -->
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
24 <param name="input" value="fasta_formatter1.fasta" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
25 <param name="width" value="0" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
26 <output name="output" file="fasta_formatter1.out" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
27 </test>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
28 <test>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
29 <!-- Re-format a FASTA file into multiple lines wrapping at 60 charactes -->
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
30 <param name="input" value="fasta_formatter1.fasta" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
31 <param name="width" value="60" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
32 <output name="output" file="fasta_formatter2.out" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
33 </test>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
34 </tests>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
35
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
36 <outputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
37 <data format="input" name="output" metadata_source="input"
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
38 />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
39 </outputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
40
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
41 <help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
42 **What it does**
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
43
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
44 This tool re-formats a FASTA file, changing the width of the nucleotides lines.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
45
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
46 **TIP:** Outputting a single line (with **width = 0**) can be useful for scripting (with **grep**, **awk**, and **perl**). Every odd line is a sequence identifier, and every even line is a nucleotides line.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
47
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
48 --------
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
49
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
50 **Example**
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
51
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
52 Input FASTA file (each nucleotides line is 50 characters long)::
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
53
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
54 >Scaffold3648
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
55 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTC
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
56 CCTAATGTCAGGGACCTACCTGTTTTTGTTATGTTTGGGTTTTGTTGTTG
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
57 TTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACA
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
58 ATTAAAGTCAATTTTAATGAACATGTAGTAAAAACT
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
59 >Scaffold9299
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
60 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAG
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
61 TCTTCGGTCATAACACAAACCCAGACCTACGTATATGACAAAGCTAATAG
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
62 aactggtctttacctTTAAGTTG
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
63
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
64
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
65 Output FASTA file (with width=80)::
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
66
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
67 >Scaffold3648
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
68 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTCCCTAATGTCAGGGACCTACCTGTTTTTGTT
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
69 ATGTTTGGGTTTTGTTGTTGTTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACAATTAAAGTCA
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
70 ATTTTAATGAACATGTAGTAAAAACT
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
71 >Scaffold9299
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
72 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAGTCTTCGGTCATAACACAAACCCAGACCTAC
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
73 GTATATGACAAAGCTAATAGaactggtctttacctTTAAGTTG
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
74
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
75 Output FASTA file (with width=0 => single line)::
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
76
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
77 >Scaffold3648
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
78 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTCCCTAATGTCAGGGACCTACCTGTTTTTGTTATGTTTGGGTTTTGTTGTTGTTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACAATTAAAGTCAATTTTAATGAACATGTAGTAAAAACT
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
79 >Scaffold9299
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
80 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAGTCTTCGGTCATAACACAAACCCAGACCTACGTATATGACAAAGCTAATAGaactggtctttacctTTAAGTTG
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 This tool is based on `FASTX-toolkit`__ by Assaf Gordon.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
86
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
87 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
88 </help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
89 </tool>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
90 <!-- FASTQ-to-FASTA is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->