-
Notifications
You must be signed in to change notification settings - Fork 92
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
KeyError: 'X' #8
Comments
I got the same error. Did you also get a segmentation fault when executing PSI-BLAST? |
I had a segmentation fault with psi-blast 2.10 but it seems to work with ver 2.9 : |
Is this modification in feature.py better to handle the residue X? |
I had this issue as well. The code change above fixed it. It would be nice to add it to the repository. If you would like, I can open a pull request with these changes. |
|
I found that an error for some input sequences is produced if an alignment during the feature generation pipeline contains the amino acid place holder X:
KeyError: 'X' Traceback (most recent call last): File "feature.py", line 263, in <module> feature_generation(SEQ_FILE, OUT_FILE) File "feature.py", line 194, in feature_generation non_gapped_profile[i, mapping[j]] += 1
I could solve the problem by replacing line 194 in feature.py with:
if (j!='X'):
non_gapped_profile[i, mapping[j]] += 1
The text was updated successfully, but these errors were encountered: