annotate fasta_formatter.xml @ 2:9457a20156db draft

planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
author devteam
date Mon, 12 Oct 2015 10:15:31 -0400
parents 1dbb5181c327
children 859422bcb689
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
1 <tool id="cshl_fasta_formatter" version="1.0.0" name="FASTA Width">
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
2 <description>formatter</description>
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
3 <requirements>
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
4 <requirement type="package" version="0.0.13">fastx_toolkit</requirement>
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
5 </requirements>
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
6 <!--
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
7 Note:
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
8 fasta_formatter also has a tabular output mode (-t),
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
9 but Galaxy already contains such a tool, so no need
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
10 to offer the user a duplicated tool.
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
11
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
12 So this XML tool only changes the width (line-wrapping) of a
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
13 FASTA file.
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
14 -->
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
15 <command>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
16 <![CDATA[
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
17 zcat -f < '$input' | fasta_formatter -w $width -o '$output'
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
18 ]]>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
19 </command>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
20 <inputs>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
21 <param format="fasta" name="input" type="data" label="Library to re-format" />
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
22
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
23 <param name="width" type="integer" value="0" label="New width for nucleotides strings" help="Use 0 for single line out." />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
24 </inputs>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
25 <outputs>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
26 <data format="fasta" name="output" metadata_source="input" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
27 </outputs>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
28 <tests>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
29 <test>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
30 <!-- Re-format a FASTA file into a single line -->
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
31 <param name="input" value="fasta_formatter1.fasta" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
32 <param name="width" value="0" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
33 <output name="output" file="fasta_formatter1.out" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
34 </test>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
35 <test>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
36 <!-- Re-format a FASTA file into multiple lines wrapping at 60 charactes -->
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
37 <param name="input" value="fasta_formatter1.fasta" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
38 <param name="width" value="60" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
39 <output name="output" file="fasta_formatter2.out" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
40 </test>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
41 </tests>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
42 <help>
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
43 **What it does**
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
44
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
45 This tool re-formats a FASTA file, changing the width of the nucleotides lines.
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
46
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
47 **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.
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
48
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
49 --------
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
50
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
51 **Example**
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
52
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
53 Input FASTA file (each nucleotides line is 50 characters long)::
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
54
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
55 >Scaffold3648
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
56 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTC
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
57 CCTAATGTCAGGGACCTACCTGTTTTTGTTATGTTTGGGTTTTGTTGTTG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
58 TTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACA
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
59 ATTAAAGTCAATTTTAATGAACATGTAGTAAAAACT
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
60 >Scaffold9299
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
61 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
62 TCTTCGGTCATAACACAAACCCAGACCTACGTATATGACAAAGCTAATAG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
63 aactggtctttacctTTAAGTTG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
64
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
65
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
66 Output FASTA file (with width=80)::
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
67
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
68 >Scaffold3648
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
69 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTCCCTAATGTCAGGGACCTACCTGTTTTTGTT
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
70 ATGTTTGGGTTTTGTTGTTGTTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACAATTAAAGTCA
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
71 ATTTTAATGAACATGTAGTAAAAACT
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
72 >Scaffold9299
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
73 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAGTCTTCGGTCATAACACAAACCCAGACCTAC
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
74 GTATATGACAAAGCTAATAGaactggtctttacctTTAAGTTG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
75
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
76 Output FASTA file (with width=0 => single line)::
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
77
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
78 >Scaffold3648
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
79 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTCCCTAATGTCAGGGACCTACCTGTTTTTGTTATGTTTGGGTTTTGTTGTTGTTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACAATTAAAGTCAATTTTAATGAACATGTAGTAAAAACT
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
80 >Scaffold9299
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
81 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAGTCTTCGGTCATAACACAAACCCAGACCTACGTATATGACAAAGCTAATAGaactggtctttacctTTAAGTTG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
82
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
83 ------
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
84
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
85 This tool is based on `FASTX-toolkit`__ by Assaf Gordon.
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
86
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
87 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
88 </help>
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
89 </tool>