annotate fasta_compute_length.xml @ 1:2811169ce62b draft

planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
author devteam
date Tue, 13 Oct 2015 12:19:36 -0400
parents 86f00ebe7be7
children d75972d4bd2a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2811169ce62b planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
1 <tool id="fasta_compute_length" name="Compute sequence length" version="1.0.0">
0
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
2 <description></description>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
3 <command interpreter="python">fasta_compute_length.py $input $output $keep_first</command>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
4 <inputs>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
5 <param name="input" type="data" format="fasta" label="Compute length for these sequences"/>
1
2811169ce62b planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
6 <param name="keep_first" type="integer" value="0" label="How many title characters to keep?" help="'0' = keep the whole thing"/>
0
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
7 </inputs>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
8 <outputs>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
9 <data name="output" format="tabular"/>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
10 </outputs>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
11 <tests>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
12 <test>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
13 <param name="input" value="454.fasta" />
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
14 <param name="keep_first" value="0"/>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
15 <output name="output" file="fasta_tool_compute_length_1.out" />
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
16 </test>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
17
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
18 <test>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
19 <param name="input" value="extract_genomic_dna_out1.fasta" />
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
20 <param name="keep_first" value="0"/>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
21 <output name="output" file="fasta_tool_compute_length_2.out" />
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
22 </test>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
23
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
24 <test>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
25 <param name="input" value="454.fasta" />
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
26 <param name="keep_first" value="14"/>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
27 <output name="output" file="fasta_tool_compute_length_3.out" />
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
28 </test>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
29 </tests>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
30 <help>
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
31
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
32 **What it does**
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
33
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
34 This tool counts the length of each fasta sequence in the file. The output file has two columns per line (separated by tab): fasta titles and lengths of the sequences. The option *How many characters to keep?* allows to select a specified number of letters from the beginning of each FASTA entry.
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
35
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
36 -----
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
37
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
38 **Example**
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
39
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
40 Suppose you have the following FASTA formatted sequences from a Roche (454) FLX sequencing run::
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
41
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
42 &gt;EYKX4VC02EQLO5 length=108 xy=1826_0455 region=2 run=R_2007_11_07_16_15_57_ TCCGCGCCGAGCATGCCCATCTTGGATTCCGGCGCGATGACCATCGCCCGCTCCACCACG TTCGGCCGGCCCTTCTCGTCGAGGAATGACACCAGCGCTTCGCCCACG &gt;EYKX4VC02D4GS2 length=60 xy=1573_3972 region=2 run=R_2007_11_07_16_15_57_ AATAAAACTAAATCAGCAAAGACTGGCAAATACTCACAGGCTTATACAATACAAATGTAAfa
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
43
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
44 Running this tool while setting **How many characters to keep?** to **14** will produce this::
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
45
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
46 EYKX4VC02EQLO5 108
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
47 EYKX4VC02D4GS2 60
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
48
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
49
86f00ebe7be7 Imported from capsule None
devteam
parents:
diff changeset
50 </help>
1
2811169ce62b planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
51 </tool>