Source code

Download source archive ↓

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

1<tool id="extract_all_sequences_from_gff" name="Extract Sequences from GFF">
2    <description>files (CDS, gene ...)</description>
3    <command interpreter="python">
4<![CDATA[
5        gff_to_sequence.py
6            --gff $input_gff
7            --sequence $input_sequence
8            -o $output
9            -t $type
10]]>
11    </command>
12    <inputs>
13        <param name="input_gff" type="data" format="gff3,gff" label="GFF File (from glimmerhmm)"/>
14        <param name="input_sequence" type="data" format="fasta" label="Fasta Sequence File"/>
15        <param name="type" type="text" value="CDS" label="GFF sequence type."/>
16    </inputs>
17    <outputs>
18        <data name="output" format="fasta" label="$type sequences extracted from ${input_sequence.name}" />
19    </outputs>
20    <requirements>
21        <requirement type="python-module">Bio</requirement>
22        <requirement type="python-module">BCBio</requirement>
23    </requirements>
24    <tests>
25    </tests>
26    <help>
27<![CDATA[
28
29**What it does**
30
31Extract all sequences of a given type from a gff file and their corresponding FASTA file.
32
33]]>
34    </help>
35</tool>