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

Bio.Alphabet has been removed from Biopython #6

Open
Alqueno opened this issue Nov 30, 2020 · 0 comments
Open

Bio.Alphabet has been removed from Biopython #6

Alqueno opened this issue Nov 30, 2020 · 0 comments

Comments

@Alqueno
Copy link

Alqueno commented Nov 30, 2020

Hi!
I'm trying to use the assign_clade tool for command line version. I've installed conda and created the biopython environment as instructed by the READ.me file.
However, when I try to test the tools the script throw an error: Bio.Alphabet has been removed from Biopython.
As suggested by the error I remove the Alphabet from import, removed IUPAC element from declaration and also from a line were it loads the sequence. With this modification the script runs and produced the expected output.

here is the diff between your original file and the modified (working one)

`14c14
< from Bio import Seq, SeqIO, SeqUtils, Alphabet, SeqRecord

from Bio import Seq, SeqIO, SeqUtils, SeqRecord
16c16
< from Bio.Alphabet import IUPAC


#from Bio.Alphabet import IUPAC
100c100
< for record in SeqIO.parse(inFile, "fasta", alphabet=IUPAC.protein):


for record in SeqIO.parse(inFile, "fasta"):`

I'm sure this issue is present in other scripts but I don't needed it so I don't tested it.

I'm Sorry but my English is not the best. I hope you can understand the issue and the solution. Thanks in advance.

Regards!

Andrés

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant