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

Molecule type as a topology attribute when reading a TPR #1555

Closed
jbarnoud opened this issue Jul 24, 2017 · 5 comments
Closed

Molecule type as a topology attribute when reading a TPR #1555

jbarnoud opened this issue Jul 24, 2017 · 5 comments

Comments

@jbarnoud
Copy link
Contributor

TPR files produced by gromacs have a notion of molecule type. A molecule is a connected fragment, and each molecule that share a molecule type have the same template topology.

Molecule type is an interesting attributes in Gromacs topologies as it allows, among other things, to work with multi-residue molecules in a way much more elegant than chains in a PDB file for instance. Yet, not all topology format have such an attribute.

The TPR parser partially deals with molecule types as it builds the segments based on them. But the segments built by the TPR parser are not exactly equivalent to having a molecule type attribute. Also, working with segment is a pain as their meaning differs from a format to the other.

I would like to add a moltype topology attribute that the TPR parser would populate. Do you see a problem with that? Are there other formats that define an equivalent concept and that could populate the moltype attribute as well?

@mnmelo
Copy link
Member

mnmelo commented Jul 24, 2017

If the meaning of 'segment' already differs between formats I wouldn't mind overloading it for the GROMACS case, which doesn't have any other segment data.

OTOH, having ambiguous attribute semantics sucks, because it breaks a format-agnostic interface.

I'm thus divided: half for the simplicity of using the already implemented segment construct, half for keeping the abstraction pure. Someone else please chip in!

@jbarnoud
Copy link
Contributor Author

jbarnoud commented Jul 24, 2017 via email

@richardjgowers
Copy link
Member

Yeah this is pretty tricky. It's nice to have consistent names for things across formats, so that we're format agnostic, but then we also want to incorporate all information available in the topology and provide the format specific information that a gromacs user may reasonably expect.

@jbarnoud jbarnoud mentioned this issue Jul 24, 2017
4 tasks
@kain88-de
Copy link
Member

I have a question. Do we ever mark what fields are specific to a format? Are there any docs highlighting the difference or similarities when a specific topology is parsed. I assume there are still a good amount of little gotchas involved from time to time.

@richardjgowers
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants