Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get the version of the script with --version #31

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/gff3_to_embl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys
import argparse
import datetime
import pkg_resources
from gff3toembl import EMBLWriter

if __name__ == "__main__":
Expand All @@ -30,6 +31,7 @@ if __name__ == "__main__":
parser.add_argument('--locus_tag', '-l', help='Overwrite the locus tag in the annotation file')
parser.add_argument('--translation_table', '-n', help='Translation table', default = 11)
parser.add_argument('--chromosome_list', '-d', help='Create a chromosome list file, and use the supplied name')
parser.add_argument('--version', action='version', version=str(pkg_resources.get_distribution("gff3toembl").version))

args = parser.parse_args()
emblwriter = EMBLWriter.EMBLWriter(args.file[0], args.organism[0], args.taxonid[0], args.project_accession[0], args.description[0], args.authors, args.title, args.publication, args.genome_type, args.classification, args.output_filename, args.locus_tag, args.translation_table, args.chromosome_list )
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def read(fname):

setup(
name='gff3toembl',
version='0.5.2',
version='0.5.3',
description='Convert a GFF3 file to EMBL format for submission',
long_description=read('README.md'),
packages = find_packages(),
Expand Down