annotate tools/fasta_tools/fasta_compute_length.xml @ 0:9071e359b9a3

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