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

Error in google colab #27

Open
aaaniich opened this issue Dec 1, 2022 · 4 comments
Open

Error in google colab #27

aaaniich opened this issue Dec 1, 2022 · 4 comments

Comments

@aaaniich
Copy link

aaaniich commented Dec 1, 2022

Hi! I try to analyse my sequence with google colab, but i have this error. Can you help me? Thank you

IndexError Traceback (most recent call last)
in
7 with open(fasta_file, "w") as f:
8 f.write(">:H\n{}\n>:L\n{}\n".format(heavy_sequence, light_sequence))
----> 9 cst_defs = get_cst_defs(model, fasta_file, device=device)
10
11 pred_pdb = build_structure(model,

1 frames
/content/deepab/deepab/constraints/write_constraints.py in get_constraint_residue_pairs(model, fasta_file, constraint_bin_value_dict, mask_distant_orientations, use_logits, device)
94
95 if constraint_type in pairwise_constraint_types:
---> 96 if preds[pred_i][i, j].argmax().item() >= len(
97 constraint_bin_value_dict[constraint_type]):
98 continue

IndexError: index 235 is out of bounds for dimension 0 with size 235

@aaaniich
Copy link
Author

aaaniich commented Dec 1, 2022

H
QVQLKESGPGLVAPSQSLSITGTDNYIEVSGDYGVSWIRQPPGKGMVSGSGLTDGGSTYYNSALKSRLSI
SKDNSKSQVFLKMNSLDASADAMYYCAKHTYGGPGDSWGQGTSVTVSS
L
DIVMSQSPSSLAVSAGEKVTMSCRSSQSLVHSNGNTYLYRKNYLAWYQQKPGQYDATKLDSASTRESGVP
DRFTGSGSGTDFTQQSGSYPLTDLAVYYCKQSYDLPTFGAGTKLELK

It's my sequence

@jeffreyruffolo
Copy link
Member

Hello, this may be a result of Colab updating to python3.8 in the last couple days. I am working on a fix for this currently.

@aaaniich
Copy link
Author

Hello, this may be a result of Colab updating to python3.8 in the last couple days. I am working on a fix for this currently.

Sorry to bother you again!
Some of my sequences still end up with an error. Can you tell me what I'm doing wrong?

H
QVQLKESGPGLVAPSQSLSITGTSGSSLSKGYYGDYGVSWIRQPPGKGAISSGGGTAGGGSTYYNSALKS
RLSISKDNSKSQVFLKMNSLDDDDSAMYYCAKHTYGGPGDSWGQGTSVTVSS
L
DIVMSQSPSSLAVSAGEKVTMSCTAESQTSHVNRKNYLAWYQQKPGQRDGSSLSGASTRESGVPDRFTGS
GSGTDFTSQSKEVPLTDLAVYYCKQSYDLPTFGAGTKLELK

@aaaniich
Copy link
Author

Hello, this may be a result of Colab updating to python3.8 in the last couple days. I am working on a fix for this currently.

I have this error every time, when I try to start step "Predict antibody structure with DeepAb"
IndexError: index 233 is out of bounds for dimension 0 with size 233

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

2 participants