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

Pdb Loading Fix #666

Merged
merged 5 commits into from
Nov 26, 2024
Merged

Pdb Loading Fix #666

merged 5 commits into from
Nov 26, 2024

Conversation

brenerrr
Copy link
Contributor

Previously, an error would be raised when attempting to find bonds in a PDB file that lacked bond information and contained multiple chain identifiers. Now, the atoms are first loaded and then connected. This is mainly an issue about how biotite handles getting the structure from the pdb.

More information can be found on #658.

Previously, an error would be raised when attempting to find bonds in a PDB file that lacked bond information and contained multiple chain identifiers. Now, the atoms are first loaded and then connected.
@BradyAJohnston
Copy link
Owner

Thanks for this! Are you able to add a test case with some example data that would fail on the old method but now succeeds with this fix?

@brenerrr
Copy link
Contributor Author

brenerrr commented Nov 25, 2024

No problem. I just added a new test that loads a pdb called "no_bonds.pdb" very similar to the one I posted on #658 and checks the position and bond types (which are none). When executing it without the fix the test fails.

@BradyAJohnston
Copy link
Owner

I tweaked it to add back in the attempt to import with bond information. People like to abuse the heck out of the PDB format, so they could have all sorts of weird and wonderful bond information. I'd rather try and get the bonds first, then if that fails fall back on finding via residue names.

@BradyAJohnston BradyAJohnston merged commit 362678f into BradyAJohnston:main Nov 26, 2024
5 checks passed
@brenerrr brenerrr deleted the pdb_fix branch November 26, 2024 11:09
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.

2 participants