annotate tools/fastx_toolkit/fasta_formatter.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
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_fasta_formatter" name="FASTA Width">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>formatter</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <requirements><requirement type="package">fastx_toolkit</requirement></requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <!--
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 Note:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 fasta_formatter also has a tabular output mode (-t),
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 but Galaxy already contains such a tool, so no need
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 to offer the user a duplicated tool.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 So this XML tool only changes the width (line-wrapping) of a
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 FASTA file.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <command>zcat -f '$input' | fasta_formatter -w $width -o $output</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <param format="fasta" name="input" type="data" label="Library to re-format" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <param name="width" type="integer" value="0" label="New width for nucleotides strings" help="Use 0 for single line out." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <!-- Re-format a FASTA file into a single line -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <param name="input" value="fasta_formatter1.fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <param name="width" value="0" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <output name="output" file="fasta_formatter1.out" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <!-- Re-format a FASTA file into multiple lines wrapping at 60 charactes -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <param name="input" value="fasta_formatter1.fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <param name="width" value="60" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <output name="output" file="fasta_formatter2.out" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <data format="input" name="output" metadata_source="input" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 This tool re-formats a FASTA file, changing the width of the nucleotides lines.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 **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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 --------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 Input FASTA file (each nucleotides line is 50 characters long)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 >Scaffold3648
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTC
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 CCTAATGTCAGGGACCTACCTGTTTTTGTTATGTTTGGGTTTTGTTGTTG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 TTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 ATTAAAGTCAATTTTAATGAACATGTAGTAAAAACT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 >Scaffold9299
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 TCTTCGGTCATAACACAAACCCAGACCTACGTATATGACAAAGCTAATAG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 aactggtctttacctTTAAGTTG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 Output FASTA file (with width=80)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 >Scaffold3648
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTCCCTAATGTCAGGGACCTACCTGTTTTTGTT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 ATGTTTGGGTTTTGTTGTTGTTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACAATTAAAGTCA
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 ATTTTAATGAACATGTAGTAAAAACT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 >Scaffold9299
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAGTCTTCGGTCATAACACAAACCCAGACCTAC
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 GTATATGACAAAGCTAATAGaactggtctttacctTTAAGTTG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 Output FASTA file (with width=0 => single line)::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 >Scaffold3648
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTCCCTAATGTCAGGGACCTACCTGTTTTTGTTATGTTTGGGTTTTGTTGTTGTTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACAATTAAAGTCAATTTTAATGAACATGTAGTAAAAACT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 >Scaffold9299
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAGTCTTCGGTCATAACACAAACCCAGACCTACGTATATGACAAAGCTAATAGaactggtctttacctTTAAGTTG
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 </tool>