annotate fasta_formatter.xml @ 4:516b97a23d7e draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit fd099d17eceaa319fbfe429f4725328d88b18c9f
author iuc
date Thu, 10 Aug 2023 06:52:44 +0000
parents 859422bcb689
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
516b97a23d7e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit fd099d17eceaa319fbfe429f4725328d88b18c9f
iuc
parents: 3
diff changeset
1 <tool id="cshl_fasta_formatter" version="1.0.1+galaxy@VERSION_SUFFIX@" profile="22.05" name="FASTA Width">
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
2 <description>formatter</description>
3
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
3 <macros>
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
4 <import>macros.xml</import>
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
5 </macros>
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
6 <expand macro="requirements" />
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
7 <!--
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
8 Note:
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
9 fasta_formatter also has a tabular output mode (-t),
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
10 but Galaxy already contains such a tool, so no need
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
11 to offer the user a duplicated tool.
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
12
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
13 So this XML tool only changes the width (line-wrapping) of a
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
14 FASTA file.
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
15 -->
3
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
16 <command detect_errors="exit_code"><![CDATA[
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
17 @CATS@ fasta_formatter
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
18 -w $width
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
19 -o '$output'
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
20 ]]></command>
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
21 <inputs>
3
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
22 <expand macro="fasta_input" />
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
23
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
24 <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
25 </inputs>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
26 <outputs>
3
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
27 <data name="output" format="fasta" metadata_source="input" />
2
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
28 </outputs>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
29 <tests>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
30 <test>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
31 <!-- Re-format a FASTA file into a single line -->
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
32 <param name="input" value="fasta_formatter1.fasta" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
33 <param name="width" value="0" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
34 <output name="output" file="fasta_formatter1.out" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
35 </test>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
36 <test>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
37 <!-- Re-format a FASTA file into multiple lines wrapping at 60 charactes -->
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
38 <param name="input" value="fasta_formatter1.fasta" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
39 <param name="width" value="60" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
40 <output name="output" file="fasta_formatter2.out" />
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
41 </test>
9457a20156db planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 1
diff changeset
42 </tests>
3
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
43 <help><![CDATA[
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
44 **What it does**
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
45
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
46 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
47
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
48 **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
49
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
50 --------
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
51
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
52 **Example**
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
53
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
54 Input FASTA file (each nucleotides line is 50 characters long)::
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
55
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
56 >Scaffold3648
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
57 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTC
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
58 CCTAATGTCAGGGACCTACCTGTTTTTGTTATGTTTGGGTTTTGTTGTTG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
59 TTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACA
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
60 ATTAAAGTCAATTTTAATGAACATGTAGTAAAAACT
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
61 >Scaffold9299
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
62 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
63 TCTTCGGTCATAACACAAACCCAGACCTACGTATATGACAAAGCTAATAG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
64 aactggtctttacctTTAAGTTG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
65
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
66
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
67 Output FASTA file (with width=80)::
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
68
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
69 >Scaffold3648
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
70 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTCCCTAATGTCAGGGACCTACCTGTTTTTGTT
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
71 ATGTTTGGGTTTTGTTGTTGTTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACAATTAAAGTCA
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
72 ATTTTAATGAACATGTAGTAAAAACT
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
73 >Scaffold9299
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
74 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAGTCTTCGGTCATAACACAAACCCAGACCTAC
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
75 GTATATGACAAAGCTAATAGaactggtctttacctTTAAGTTG
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
76
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
77 Output FASTA file (with width=0 => single line)::
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
78
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
79 >Scaffold3648
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
80 AGGAATGATGACTACAATGATCAACTTAACCTATCTATTTAATTTAGTTCCCTAATGTCAGGGACCTACCTGTTTTTGTTATGTTTGGGTTTTGTTGTTGTTGTTTTTTTAATCTGAAGGTATTGTGCATTATATGACCTGTAATACACAATTAAAGTCAATTTTAATGAACATGTAGTAAAAACT
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
81 >Scaffold9299
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
82 CAGCATCTACATAATATGATCGCTATTAAACTTAAATCTCCTTGACGGAGTCTTCGGTCATAACACAAACCCAGACCTACGTATATGACAAAGCTAATAGaactggtctttacctTTAAGTTG
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
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
86 This tool is based on `FASTX-toolkit`__ by Assaf Gordon.
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
87
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
88 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
3
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
89 ]]></help>
859422bcb689 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fasta_formatter commit bbb2e6b6769b03602a8ab97001f88fbec52080a1
iuc
parents: 2
diff changeset
90 <expand macro="citations" />
0
8f0ae92440b8 Uploaded tool tarball.
devteam
parents:
diff changeset
91 </tool>