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

Custom molname #623

Closed
wants to merge 8 commits into from
Closed

Conversation

csbrasnett
Copy link
Collaborator

add a flag to allow users to specify the molname prefix that gets written into files.

This probably solves the problem where you have multiple go models in your system as discussed here, and potentially #35 too.

@csbrasnett
Copy link
Collaborator Author

took longer sorting out the tests than I'd like, but I think this should work.

in short, add -name to allow users to specify the prefix name of the molecule to be more customisable rather than just 'molecule_{0..n}'.

The main other change is then that the -go-moltype argument is removed so that the atomnames are taken from the molname automatically. This will then allow users with multiple Go models of different proteins to have them in the same system, so that the additional [ atomtype ] and [ nonbond_params ] directives don't have overlapping definitions.

@csbrasnett
Copy link
Collaborator Author

Did we reach any consensus on what we wanted to do with this in the end?

@pckroon
Copy link
Member

pckroon commented Nov 14, 2024

You're the closest to the actual users, what do you think they want/need?

@csbrasnett
Copy link
Collaborator Author

You're the closest to the actual users, what do you think they want/need?

perfect timing for a group meeting poll tomorrow!

@csbrasnett
Copy link
Collaborator Author

The consensus is that this is a good thing!

@pckroon
Copy link
Member

pckroon commented Nov 15, 2024

"this" is a bit ambiguous ;)

@csbrasnett
Copy link
Collaborator Author

aha ok, the idea of a -name flag to 1) name your molecules as you want and 2) avoid multiple definitions from multiple Go models in your system would be appreciated by the user community

@pckroon
Copy link
Member

pckroon commented Nov 15, 2024

I'm not sure I quite understand what you mean by 2), and how does this relate to the merge all that's currently in the pipeline?

@csbrasnett
Copy link
Collaborator Author

If you have 2 different proteins that you've made and validated go models for separately, then at the moment they'll both be called molecule_0, with associated go_atomtypes.itp that run molecule_0_1...molecule_0_n.

If you then build a system that contains both proteins, when it comes to preparing the system for simulation, your top file will at some point need to include both files, which means that you have 1) atom definitions multiply defined, and 2) some apparent nonbonded interactions that shouldn't be there/can't be defined, because there'll be a different number of BB virtual sites on the different proteins.

This PR tries to fix this, so that you give your own prefix for the protein that you're CGing, then for Go models, the virtual site atoms are at least called different things so they can be included multiple times over without error at preprocessing.

For any other protein, it just means that the [ moleculetype ] name is something vaguely more memorable than just molecule_0.

I realise this clashes with what you said earlier about CGing a whole atomistic system in one go, but I don't think that's how most people are using martinize

@pckroon
Copy link
Member

pckroon commented Nov 18, 2024

Alright, sounds good.
Is this already implemented/ready for review?

@csbrasnett
Copy link
Collaborator Author

yep, should all be contained here!

Copy link
Member

@pckroon pckroon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

2 participants