-
Notifications
You must be signed in to change notification settings - Fork 667
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
What should be a bond in Gromacs topologies? #588
Comments
Hey Yeah definitely something we can play with now. I've been thinking how I I think ideally the extra info would be similar to Attributes again. I'm On Tue, 15 Dec 2015 06:08 Jonathan Barnoud [email protected] wrote:
|
@jbarnoud I'd have a look at |
On a semantic level, I would reserve "bond" for a chemical bond and not include artificial constructs such as constraints. Bonds is also what would be used to define fragments (i.e. molecules). |
Constraints can be used to describe chemical bonds. It is often used to avoid bonds vibrations and increase the step. The issue is that the same constraints can be used for other purposes. —Reply to this email directly or view it on GitHub. |
@jbarnoud that sounds sensible. I think gromacs has two types of constraints, one of which causes nonbonded exclusions (== chemical bond) and the other doesn't. Hopefully (I've remembered that correctly and) you can distinguish these inside the TPR. I think I'd prefer if anything that was a chemical bond appeared under the |
@jbarnoud is this resolved in any way or what needs to happen to close this issue? Or can you formulate it as a proposal and we can comment/"vote" on it? |
It is not fix yet. So far I think the most sensitive things to do (and that can be done quickly) is to exclude the constraints and the tabular potentials that do not create an exclusion from the "topological bonds". This is what I understand from the gromacs manual, and from my recent experience with odd topologies. Latter on, I still plan to give access to all the interactions, and to read a maximum of information in the topology attributes. |
Just to add: it would be nice if rigid water models would show up with bonds between OW and HW1 and OW and HW2 when read from a TPR: >>> import MDAnalysis as mda; from MDAnalysis.tests.datafiles import TPR, XTC
>>> u = mda.Universe(TPR, XTC)
>>> u.select_atoms("resname SOL").bonds
<TopologyGroup containing 0 bonds> (Not sure if there is sufficient information to make this work automatically; there are additional distance constraints to make the water model rigid and, this being TIP4P, it even contains a dummy MW site, which should not have a bond at all.) |
A few days ago, @mnmelo and I talked about what should be considered a bond in Gromacs topologies. Indeed, Gromacs offers various ways to define a bond, an angle, a dihedral, or an improper; some of these ways are not always used with topological bonds in mind. For instance, depending on the force field and the molecule, a constraint can be a bond or not. The same goes for virtual sites.
For now, the TPR parser has a list of interactions it considers as bonds. Constraints, for instance, are part of this list meaning that there can be to much bonds read for some molecules where constraints serve an other purpose.
With the new AtomGroup model (#363), it will be possible to attach any topological attributes to a universe. Would it make sense to have each interaction type be a separate attribute? Then lists of bonds, angles, dihedrals, and impropers could get composed based on these attributes, without information getting lost in the process.
In the long shot, this information can be used in the context of #507 to guess part of the topology based on the force field.
The text was updated successfully, but these errors were encountered: