annotate fasta_compute_length.xml @ 1:d8cc2c8eef14 draft

planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
author devteam
date Tue, 21 Jul 2015 14:18:55 -0400
parents ece409f6573c
children de2db1bdfbf8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
d8cc2c8eef14 planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents: 0
diff changeset
1 <tool id="fasta_compute_length" name="Compute sequence length" version="1.0.0">
0
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
2 <description></description>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
3 <command interpreter="python">fasta_compute_length.py $input $output $keep_first</command>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
4 <inputs>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
5 <param name="input" type="data" format="fasta" label="Compute length for these sequences"/>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
6 <param name="keep_first" type="integer" size="5" value="0" label="How many title characters to keep?" help="'0' = keep the whole thing"/>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
7 </inputs>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
8 <outputs>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
9 <data name="output" format="tabular"/>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
10 </outputs>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
11 <tests>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
12 <test>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
13 <param name="input" value="454.fasta" />
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
14 <param name="keep_first" value="0"/>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
15 <output name="output" file="fasta_tool_compute_length_1.out" />
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
16 </test>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
17
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
18 <test>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
19 <param name="input" value="extract_genomic_dna_out1.fasta" />
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
20 <param name="keep_first" value="0"/>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
21 <output name="output" file="fasta_tool_compute_length_2.out" />
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
22 </test>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
23
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
24 <test>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
25 <param name="input" value="454.fasta" />
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
26 <param name="keep_first" value="14"/>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
27 <output name="output" file="fasta_tool_compute_length_3.out" />
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
28 </test>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
29 </tests>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
30 <help>
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
31
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
32 **What it does**
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
33
ece409f6573c 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.
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
35
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
36 -----
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
37
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
38 **Example**
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
39
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
40 Suppose you have the following FASTA formatted sequences from a Roche (454) FLX sequencing run::
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
41
ece409f6573c 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
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
43
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
44 Running this tool while setting **How many characters to keep?** to **14** will produce this::
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
45
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
46 EYKX4VC02EQLO5 108
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
47 EYKX4VC02D4GS2 60
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
48
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
49
ece409f6573c Imported from capsule None
devteam
parents:
diff changeset
50 </help>
1
d8cc2c8eef14 planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents: 0
diff changeset
51 </tool>