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