upstream/tabular_to_fasta/tabular_to_fasta.xml
1<tool id="tab2fasta" name="Tabular-to-FASTA" version="1.1.1" profile="16.04">
2 <description>converts tabular file to FASTA format</description>
3 <requirements>
4 <requirement type="package" version="3.7">python</requirement>
5 </requirements>
6 <command><![CDATA[
7python '$__tool_directory__/tabular_to_fasta.py'
8'$input'
9$title_col
10$seq_col
11'$output'
12 ]]></command>
13 <inputs>
14 <param name="input" type="data" format="tabular" label="Tab-delimited file"/>
15 <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"/>
16 <param name="seq_col" type="data_column" data_ref="input" numerical="false" label="Sequence column" />
17 </inputs>
18 <outputs>
19 <data name="output" format="fasta"/>
20 </outputs>
21 <tests>
22 <test>
23 <param name="input" value="solexa.tabular" />
24 <param name="title_col" value="1,2,3,4" />
25 <param name="seq_col" value="5" />
26 <output name="output" file="tabular_to_fasta_out1.fasta" />
27 </test>
28 </tests>
29 <help><![CDATA[
30**What it does**
31
32Converts tab delimited data into FASTA formatted sequences.
33
34-----------
35
36**Example**
37
38Suppose this is a sequence file produced by Illumina (Solexa) sequencer::
39
40 5 300 902 419 GACTCATGATTTCTTACCTATTAGTGGTTGAACATC
41 5 300 880 431 GTGATATGTATGTTGACGGCCATAAGGCTGCTTCTT
42
43Selecting **c3** and **c4** as the **Title column(s)** and **c5** as the **Sequence column** will result in::
44
45 >902_419
46 GACTCATGATTTCTTACCTATTAGTGGTTGAACATC
47 >880_431
48 GTGATATGTATGTTGACGGCCATAAGGCTGCTTCTT
49 ]]></help>
50</tool>