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

PDBLoader: Remove assumption of continuously defined atoms. #19242

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Apr 27, 2020

Related: #19225

I'm not yet sure about the semantics of TER records but at least the PR ensures that the mentioned file of the issue can be loaded.

The problem was that PDBLoader assumed a continuous definition of atoms which is not always true because of TER records. These records terminate a chain of atoms and can be present in a PDB file multiple times. The PR removed this assumption making the loader more generic.

However, it was also necessary to remove the json.bonds data which was previously part of the loader's result since its indices refer to wrong atoms in the json.atoms array if TER records are present. json.bonds was not used in the examples once and I think making it public does not provide real benefits.

@mrdoob mrdoob added this to the r116 milestone Apr 28, 2020
@mrdoob mrdoob merged commit c1c1c98 into mrdoob:dev Apr 28, 2020
@mrdoob
Copy link
Owner

mrdoob commented Apr 28, 2020

Thanks!

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

2 participants