Repository navigation
Add command to fix duplicate atom names - #1202
Merged
Merged
Conversation
added 20 commits
October 21, 2026 15:04
…structure section altered
…to set of names to check
…ion bump since the mol2 files produced by cpptraj might be different now (since the charge and molecule type fields are preserved from incoming mol2 files).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
V7.13.0. Add the
fixatomnamescommand.This command attempts to fix duplicated atom names in the residues of the specified topology. If no mask is given, all residues will be checked. The algorithm used is extremely simple. When an atom is found with a duplicated name, if it has a digit that digit will be incremented. If multiple digits are present (e.g. H1N1) the right-most digit will be incremented first. If no digits are present one will be appended.
This command was used to fix duplicate atom names in modxna fragments. See: modxna/modxna#20
This PR also makes it so that the molecule and charge type fields of incoming mol2 files are preserved for output mol2 files.
Add 1 test and add a manual entry.