-
Notifications
You must be signed in to change notification settings - Fork 1
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
43 improve check logic in molecular dynamics normalizers #44
43 improve check logic in molecular dynamics normalizers #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably give some careful thought to the handling of virtual sites. Other than that, I don't have much to say.
@@ -68,6 +68,11 @@ class BeadGroup(object): | |||
def __init__(self, atoms, compound='fragments'): | |||
"""Initialize with an AtomGroup instance. | |||
Will split based on keyword 'compounds' (residues or fragments). | |||
self._atoms: AtomGroup (total number of atoms) | |||
self.compound: str (dictates type of grouping) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to make sure that things like "grouping" and "compound" (line 75) are explained in the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This compound/fragments concept is an MDAnalysis thing, tbh I don't fully understand the full usage. Only that 'fragments' is the correct keyword to grab molecules for some reason (at least in the examples that I have seen)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is something that you think we specifically need to add to the documentation, could you make an issue about it so we don't forget?
|
||
if ags_by_moltype.masses is not None: | ||
ags_by_moltype = ags_by_moltype[ | ||
ags_by_moltype.masses > abs(1e-2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to remove the virtual sites from the uploads, or would keeping them in the trajectory but "ignoring" them during postprocessing a better option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is purely so that the RDFs/MSDs are not calculated for the virtual sites. Otherwise, I think they should be fully supported to upload.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then it is like I was suggesting.
@Bernadette-Mohr I still need to do some tests, but you can review when you have a chance. Try to think if any other checks might be useful.