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

43 improve check logic in molecular dynamics normalizers #44

Merged

Conversation

JFRudzinski
Copy link
Collaborator

@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.

@JFRudzinski JFRudzinski self-assigned this Jan 30, 2025
@JFRudzinski JFRudzinski linked an issue Jan 30, 2025 that may be closed by this pull request
Copy link
Contributor

@Bernadette-Mohr Bernadette-Mohr left a 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)
Copy link
Contributor

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.

Copy link
Collaborator Author

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)

Copy link
Collaborator Author

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)
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Copy link
Contributor

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.

@JFRudzinski JFRudzinski merged commit 46e5b96 into develop Feb 4, 2025
1 of 4 checks passed
@JFRudzinski JFRudzinski deleted the 43-improve-check-logic-in-molecular-dynamics-normalizers branch February 4, 2025 15:56
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.

Improve check logic in molecular dynamics normalizers
2 participants