-
Notifications
You must be signed in to change notification settings - Fork 208
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
T008 - module 'Bio' has no attribute 'Alphabet #402
Comments
Hi :)
I think you might be using an incompatible biopython version, you need
biopython<=1.77.
This is the full recommended teachopencadd installation:
https://projects.volkamerlab.org/teachopencadd/installing.html#install-from-the-conda-package
Let us know if this solves the issue!
Happy coding!
…On Sat 23. Sep 2023 at 18:38, Ash100 ***@***.***> wrote:
------------------------------
Hello Everyone,
I am learning by running some tutorials T008. I am supposed to run
results = align(complexes, method=METHODS["mda"])
I am having the following error;
AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 results = align(complexes, method=METHODS["mda"])
4 frames
/usr/local/lib/python3.10/dist-packages/opencadd/structure/superposition/sequences.py
<https://localhost:8080/#> in fasta2select(fastafilename, ref_resids,
ref_segids, target_resids, target_segids, backbone_selection)
113
114 """
--> 115 protein_gapped = Bio.Alphabet.Gapped(Bio.Alphabet.IUPAC.protein)
116 with open(fastafilename) as fasta:
117 alignment = Bio.AlignIO.read(fasta, "fasta", alphabet=protein_gapped)
AttributeError: module 'Bio' has no attribute 'Alphabet'
Would you please guide me, how to address this issue of alphabet?
------------------------------
—
Reply to this email directly, view it on GitHub
<#402>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABW7RNM2ERXL6GIRJTKNB7TX34NB7ANCNFSM6AAAAAA5EKW7BA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I installed biopython=1.77, but it generated the same error. As a pure biologist, I read the installation instructions but was unable to reproduce them, therefore, I tried this way, open a new Jupyter notebook, and install the following stuff one by one. Then, I used the import scripts mentioned there, and all the scripts till, How I installed these packages? I thought I am doing good. Best Regards, |
Hi Ash, thanks for your reply! It looks like the environment that you are using for running T008 is not the one where you installed biopython==1.77 as the error We cannot easily debug your custom installation, but we can try to help you get the installation as shown on our website to work for you, as that way, you should have all the correct package versions for all talktorials in place. Can you tell us (a) where you got stuck in the instructions here and (b) which operating system you are using? An alternative would be to run T008 in the cloud via Binder: |
Thank you for your response. As I mentioned earlier, I do not have in-depth knowledge of programming, therefore, I opened a notebook and run the installation scripts (mentioned by you) directly, but that did not work either. Then, I found my local way, and first run the import script mentioned in T008. I knew it will generate an error because nothing was installed. I read all the errors one by one, and from there i figure out what packages I will require, and thus I installed all these packages in notebook individually (mentioned above). ok, i will try to figure out, how to install those scripts on a notebook. Thank you so much once again |
I have confirmed the version with, |
Hello Everyone,
I am learning by running some tutorials T008. I am supposed to run
results = align(complexes, method=METHODS["mda"])
I am having the following error;
AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 results = align(complexes, method=METHODS["mda"])
4 frames
/usr/local/lib/python3.10/dist-packages/opencadd/structure/superposition/sequences.py in fasta2select(fastafilename, ref_resids, ref_segids, target_resids, target_segids, backbone_selection)
113
114 """
--> 115 protein_gapped = Bio.Alphabet.Gapped(Bio.Alphabet.IUPAC.protein)
116 with open(fastafilename) as fasta:
117 alignment = Bio.AlignIO.read(fasta, "fasta", alphabet=protein_gapped)
AttributeError: module 'Bio' has no attribute 'Alphabet'
Would you please guide me, how to address this issue of alphabet?
The text was updated successfully, but these errors were encountered: