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

adds a generic remove_residues function (remove by predicate) #10

Merged
merged 1 commit into from
Jan 3, 2021

Conversation

TianyiShi2001
Copy link
Contributor

@TianyiShi2001 TianyiShi2001 commented Jan 3, 2021

This allows, for example, removal of all zinc atoms (which is an example in iotbx, but this implementation will be faster, as iotbx depends on shared pointers (equivalent to Rust's Rc) to do this)

Copy link
Owner

@douweschulte douweschulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a cool extension to the API! I really like the approach. If you have the time feel free to also implement this for the other structs (PDB, Model, and Residue) for its child.

@douweschulte douweschulte merged commit 2bffce5 into douweschulte:master Jan 3, 2021
@TianyiShi2001 TianyiShi2001 deleted the remove_by branch January 3, 2021 15:57
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