view glimmerHMM/glimmerhmm_to_sequence.py @ 3:5e14355f802a draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/glimmer_hmm commit 2effed877a778e455c63a76e994a0f2bb8f4dba0
author rmarenco
date Thu, 14 Jul 2016 15:20:33 -0400
parents c9699375fcf6
children
line wrap: on
line source

#!/usr/bin/env python
"""Convert GlimmerHMM gene predictions into protein sequences.

This works with both the GFF and the costumn Tabular Output.
And is only a wrapper to call the appropiate scripts.

Usage:
    glimmerhmm_to_sequence.py <glimmer output> <ref fasta> <output file> <format> <protein>

"""
import sys
import os
import glimmerhmm_tabular_to_sequence
import glimmerhmm_gff_to_sequence

def main(glimmer_file, ref_file, out_file, to_protein = False):
    if to_protein == 'True':
        to_protein = True
    else:
        to_protein = False

    glimmerhmm_gff_to_sequence.main(glimmer_file, ref_file, out_file, to_protein)


if __name__ == "__main__":
    if len(sys.argv) != 5:
        print __doc__
        sys.exit()
    main(*sys.argv[1:])