annotate tools/fasta_tools/tabular_to_fasta.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="tab2fasta" name="Tabular-to-FASTA" version="1.1.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>converts tabular file to FASTA format</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">tabular_to_fasta.py $input $title_col $seq_col $output </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="input" type="data" format="tabular" label="Tab-delimited file"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="title_col" type="data_column" data_ref="input" multiple="True" numerical="False" label="Title column(s)" help="Multi-select list - hold the appropriate key while clicking to select multiple columns"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="seq_col" type="data_column" data_ref="input" numerical="False" label="Sequence column" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <data name="output" format="fasta"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <param name="input" value="solexa.tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <param name="title_col" value="1,2,3,4" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name="seq_col" value="5" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <output name="output" file="tabular_to_fasta_out1.fasta" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 Converts tab delimited data into FASTA formatted sequences.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 -----------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 Suppose this is a sequence file produced by Illumina (Solexa) sequencer::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 5 300 902 419 GACTCATGATTTCTTACCTATTAGTGGTTGAACATC
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 5 300 880 431 GTGATATGTATGTTGACGGCCATAAGGCTGCTTCTT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 Selecting **c3** and **c4** as the **Title column(s)** and **c5** as the **Sequence column** will result in::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 &gt;902_419
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 GACTCATGATTTCTTACCTATTAGTGGTTGAACATC
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 &gt;880_431
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 GTGATATGTATGTTGACGGCCATAAGGCTGCTTCTT
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 </tool>