Source code

Download source archive ↓

upstream-extended/community/tools/biopython/converters/gff_to_gb_or_embl.xml

1<tool id="gff_to_sequence" name="GFF converter" version="0.1">
2    <description>to GenBank or embl</description>
3    <command interpreter="python">
4<![CDATA[
5        gff_to_gb_or_embl.py --fasta $ifile_fasta --gff $ifile_gff --oformat $oformat --outfile $outfile
6]]>
7    </command>
8    <inputs>
9        <param name="ifile_fasta" type="data" format="fasta" label="Sequence file" help="The FASTA sequence file, which is associated with the gff file."/>
10        <param name="ifile_gff" type="data" format="gff,gff3" label="Annotation file" help="Annotated information in GFF format."/>
11
12        <param name='oformat' type='select' format='text' label="Output format.">
13            <option value='genbank'>GenBank</option>
14            <option value='embl'>embl</option>
15        </param>
16
17    </inputs>
18    <outputs>
19        <data name="outfile" format="genbank">
20            <change_format>
21               <when input="oformat" value="embl" format="embl"/>
22            </change_format>
23        </data>
24    </outputs>
25    <requirements>
26        <requirement type="python-module">Bio</requirement>
27        <requirement type="python-module">BCBio</requirement>
28    </requirements>
29    <tests>
30
31    </tests>
32    <help>
33<![CDATA[
34
35.. class:: warningmark
36
37**Note**. The FASTA identifier and the GFF identifier should be shorter than 16 characters if you want to use it in GenBank files.
38Please adjust the header or that tool tries to automatically shorten the header.
39
40
41**What it does**
42
43This tool extracts the annotated sequences in a gff file and generates a embl or genbank file.
44
45]]>
46    </help>
47</tool>