From e2513479daa9dcec5d6d6e301b855a68e87bdf58 Mon Sep 17 00:00:00 2001 From: Pradeep Bashyal Date: Wed, 31 Mar 2021 11:53:55 -0500 Subject: [PATCH] Make seq2gfe work without imgt_sqldb (#40) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Make seq2gfe work without imgt_sqldb * Bump version: 1.1.4 → 1.1.5 --- Dockerfile | 2 +- pygfe/__init__.py | 2 +- scripts/seq2gfe | 11 +++-------- setup.cfg | 2 +- setup.py | 2 +- 5 files changed, 7 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index e752ba4..a82fb73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update -q \ && apt-get clean RUN pip install --no-cache-dir seq-ann==1.1.0 -RUN pip install --no-cache-dir py-gfe==1.1.4 +RUN pip install --no-cache-dir py-gfe==1.1.5 RUN touch blank.fasta \ && seq2gfe -f blank.fasta -l HLA-A \ diff --git a/pygfe/__init__.py b/pygfe/__init__.py index 24d80bc..130c8ea 100644 --- a/pygfe/__init__.py +++ b/pygfe/__init__.py @@ -26,4 +26,4 @@ __author__ = """NMDP Bioinformatics""" -__version__ = '1.1.4' +__version__ = '1.1.5' diff --git a/scripts/seq2gfe b/scripts/seq2gfe index f50c57b..fa1ee2a 100755 --- a/scripts/seq2gfe +++ b/scripts/seq2gfe @@ -6,7 +6,6 @@ import os from Bio import SeqIO from BioSQL import BioSeqDatabase -from BioSQL.BioSeq import DBSeq from seqann import BioSeqAnn, gfe from seqann.blast_cmd import get_locus @@ -86,13 +85,9 @@ def main(): print('{:*^20} {:^20} {:*^20}'.format("", str(seq.description), "")) l = 0 for f in ann.annotation: - if isinstance(ann.annotation[f], DBSeq): - print(gfe_name, f, ann.method, str(ann.annotation[f]), sep="\t") - l += len(ann.annotation[f]) - else: - print(gfe_name, f, ann.method, str(ann.annotation[f].seq), sep="\t") - l += len(ann.annotation[f].seq) - print("") + print(gfe_name, f, ann.method, str(ann.annotation[f]), sep="\t") + l += len(ann.annotation[f]) + print("Total Length:", l) if serv: server.close() diff --git a/setup.cfg b/setup.cfg index aa9acdf..42a5ee5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.1.4 +current_version = 1.1.5 commit = True tag = True diff --git a/setup.py b/setup.py index 86ad08a..ead10cc 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ setup( name='py-gfe', - version='1.1.4', + version='1.1.5', description="Python package for converting sequence annotations to gene feature enumerations (GFE).", long_description=readme + '\n\n' + history, author="CIBMTR",