diff --git a/src/biograpy.egg-info/PKG-INFO b/src/biograpy.egg-info/PKG-INFO index 2f83d17..d0984c1 100644 --- a/src/biograpy.egg-info/PKG-INFO +++ b/src/biograpy.egg-info/PKG-INFO @@ -1,6 +1,6 @@ -Metadata-Version: 1.0 +Metadata-Version: 1.1 Name: biograpy -Version: 1.0bdev +Version: 1.0b0.dev0 Summary: UNKNOWN Home-page: UNKNOWN Author: Andrea Pierleoni diff --git a/src/biograpy.egg-info/requires.txt b/src/biograpy.egg-info/requires.txt index b0441e4..0256fb2 100644 --- a/src/biograpy.egg-info/requires.txt +++ b/src/biograpy.egg-info/requires.txt @@ -1,4 +1,4 @@ setuptools biopython matplotlib>=1.0 -numpy>=1.1 \ No newline at end of file +numpy>=1.1 diff --git a/src/biograpy/__init__.py b/src/biograpy/__init__.py index 8a2de88..888894c 100644 --- a/src/biograpy/__init__.py +++ b/src/biograpy/__init__.py @@ -1,4 +1,4 @@ -from drawer import Panel -from seqrecord import SeqRecordDrawer, SliceSeqRec +from biograpy.drawer import Panel +from biograpy.seqrecord import SeqRecordDrawer, SliceSeqRec __import__('pkg_resources').declare_namespace(__name__) diff --git a/src/biograpy/drawer.py b/src/biograpy/drawer.py index faceb21..ddebabc 100644 --- a/src/biograpy/drawer.py +++ b/src/biograpy/drawer.py @@ -12,7 +12,7 @@ import matplotlib, warnings, operator matplotlib.use('Agg') -import tracks +import biograpy.tracks from matplotlib.font_manager import FontProperties warnings.simplefilter("ignore") diff --git a/src/biograpy/seqrecord.py b/src/biograpy/seqrecord.py index 6bdb497..5ce2db3 100644 --- a/src/biograpy/seqrecord.py +++ b/src/biograpy/seqrecord.py @@ -274,7 +274,7 @@ def draw_features_ordered_by_gene_struct(self,gene_code=None): gene_name=' - '.join(Lgene_name) break if not gene_code: - raise ValueError, "Cannot draw gene structure, without a gene code" + raise ValueError("Cannot draw gene structure, without a gene code") @@ -390,7 +390,7 @@ def SliceSeqRec(seqrec,start=None,end=None,include_feature=[],exclude_feature=[] if end is None : end = -1 if (start < 0 or end < 0) and parent_length == 0 : - raise ValueError, "Cannot support negative indices without the sequence length" + raise ValueError("Cannot support negative indices without the sequence length") if start < 0 : start = parent_length - start if end < 0 :