Skip to content

Bio.Alphabet removed from Biopython #38

@maxdevblock

Description

@maxdevblock

import phylopandas as ph

raises error

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-12-ea858ee76df5> in <module>
----> 1 import phylopandas as ph

~/anaconda3/envs/covid/lib/python3.8/site-packages/phylopandas/__init__.py in <module>
     26 
     27 # Register PhyloPandas Methods
---> 28 from .core import PhyloPandasDataFrameMethods as _PhyloPandasDataFrameMethods
     29 from .core import PhyloPandasSeriesMethods as _PhyloPandasSeriesMethods
     30 from .seqio import *

~/anaconda3/envs/covid/lib/python3.8/site-packages/phylopandas/core.py in <module>
      3 from pandas_flavor import register_dataframe_accessor, register_series_accessor
      4 
----> 5 from . import seqio
      6 from . import treeio
      7 

~/anaconda3/envs/covid/lib/python3.8/site-packages/phylopandas/seqio/__init__.py in <module>
----> 1 from .read import (read_embl,
      2                    read_fasta,
      3                    read_fastq,
      4                    read_nexus_seq,
      5                    read_swiss,

~/anaconda3/envs/covid/lib/python3.8/site-packages/phylopandas/seqio/read.py in <module>
      8 from Bio.SeqRecord import SeqRecord
      9 from Bio.Blast import NCBIXML
---> 10 import Bio.Alphabet
     11 
     12 # Import Phylopandas DataFrame

~/anaconda3/envs/covid/lib/python3.8/site-packages/Bio/Alphabet/__init__.py in <module>
     18 """
     19 
---> 20 raise ImportError(
     21     "Bio.Alphabet has been removed from Biopython. In many cases, the alphabet can simply be ignored and removed from scripts. In a few cases, you may need to specify the ``molecule_type`` as an annotation on a SeqRecord for your script to work correctly. Please see https://biopython.org/wiki/Alphabet for more information."
     22 )

ImportError: Bio.Alphabet has been removed from Biopython. In many cases, the alphabet can simply be ignored and removed from scripts. In a few cases, you may need to specify the molecule_type as an annotation on a SeqRecord for your script to work correctly. Please see https://biopython.org/wiki/Alphabet for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions