Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
I leave here some changes that I have found necessary. Let me know what you think.
The modifications in common.py are due to the fact that the user can provide mdp keywords in a different format as the preset dictionary (e.g. using upper instead of lower case or using '_' instead of '-'). The mdp dictionary will have a keyword defined twice in those cases. And gromp will complain as it is not sensitive to those changes - not sure if there are more changes that should be taken into account. Cleaning the keywords before building the mdp dict solves the issue.
Changes in ndx2resttop are done to extend its use to topologies of a single chain. With a single chain pdb2gmx just writes the .top file instead of a .itp for each chain. I have also noticed different issues with how the index_dict was built that now should be corrected. Finally I added a custom posres keyword, so the user has more control over which position restraints are being activated.
I'm available to discuss these changes in detail if needed, hope this helps :)