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

SIFTS map uniprot resnum to PDB function fix #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JoshuaMeyers
Copy link

This MR fixes the function pdb.map_uniprot_resnum_to_pdb.
Previously it read chains with the assumption that chain A == entity A.
If chains IDs in the PDB start later in the alphabet, this caused issues (i.e. PDB ID: 1atp chain I)

Now the code reads unique chains in the SIFTs file.
And then loops through them alphabetically. so that the first chain -> A, second -> B. etc.

This is a precursor to my open issue (#51). I hope its useful.

The tests pass, but I have not fixed the existing broken test in the same file (test_download_biomol)

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

Successfully merging this pull request may close these issues.

None yet

1 participant