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

Deleting fragment / beads from RMF in PMI 2.0 #246

Open
ichem001 opened this issue Nov 19, 2018 · 1 comment
Open

Deleting fragment / beads from RMF in PMI 2.0 #246

ichem001 opened this issue Nov 19, 2018 · 1 comment

Comments

@ichem001
Copy link

I have been trying to delete a fragment from an RMF file (basically all 10-residue beads in rigid bodies) in PMI2.

We used to be able to do that in PMI1 by looping through the hierarchy and call IMP.atom.destroy.(p) if p was one such bead.
I tried to reproduce that in PMI2 and it did not work -
I also tried using IMP.atom.Selection and play with sets of different members and randomly deleting some to check if this is still working but unfortunately that does not work -

@benmwebb has checked the IMP.atom.Representation decorator definition to see if there is a way to delete a representation in PMI2 and it does not seem to be a feature yet.

Thanks

@Pellarin
Copy link
Collaborator

It is not a good practice to remove a particle from a PMI2 hierarchy, because:

  1. there could be gaussians related to it
  2. it could be part of a rigid body, so one has to tear down the corresponding rigid body, and then rebuild it.

I think the cleanest way to achieve it is to generate a new structure/molecule and copy all the needed descriptors/decorator-values, and deleting the old molecule hierarchy node. Let me know if you need more info.

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

No branches or pull requests

2 participants