Enhancements and improvements to the 'prepareforleap' command#951
Merged
drroe merged 384 commits intoAmber-MD:masterfrom Mar 2, 2022
Merged
Enhancements and improvements to the 'prepareforleap' command#951drroe merged 384 commits intoAmber-MD:masterfrom
drroe merged 384 commits intoAmber-MD:masterfrom
Conversation
is bonded to the anomeric carbon
stereochemistry.
std::vector<int>
Add search for index.
CalcAnomericRefTorsion
to prepareforleap command.
Collaborator
|
The PGI build in Jenkins failed. |
|
This pull request introduces 2 alerts when merging fe5f462 into 8a1543b - view on LGTM.com new alerts:
|
prepareforleap test.
|
This pull request introduces 2 alerts when merging 820b86e into 8a1543b - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging fd1d10e into 8a1543b - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 2d76462 into 8a1543b - view on LGTM.com new alerts:
|
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.
Version 6.4.0.
The
prepareforleapcommand has been in cpptraj for a while but has been hidden. It has now progressed enough to where it can be officially released.The
prepareforleapcommand will prepare a structure (usually from a PDB) for processing with the Amber program LEaP to generate topology and coordinates files for MD simulations. It will handle things like choosing alternate atom locations, removing waters/hydrogen atoms from the structure, renaming residues and generating 'bond' commands for disulfide bonds, change histidine names based on any existing protonation, and (perhaps most importantly) renaming residues/atoms and generating LEaP 'bond' commands for carbohydrates. The command can also call LEaP directly to generate the parameters once the structure is prepared. Although the command is currently Amber/GLYCAM focused, it can be customized viadat/Carbohydrate_PDB_Glycam_Names.txtand keywords for potential use with other force fields. More details are in an upcoming publication.If hydrogen atoms are present in the structure, the command will attempt a simple and straightforward determination of the protonation state of any histidine residues based on where hydrogens are bonded, and assign the appropriate residue name. The command will also identify any existing disulfide bonds as well as potential disulfide bonds and generate the corresponding LEaP ‘bond’ commands which can be applied after the structure is loaded in LEaP. Potential disulfide bonding atoms can be identified via a user-specifiable mask expression.
By default, sugars will have their residue names changed to those compatible with the GLYCAM force field based on their anomer type (alpha/beta), configuration (D/L), and linkages (glycosidic and covalent sugar to non-sugar). Any recognized functional groups that are part of sugar residues (hydroxyl, acetyl, sulfate, etc) will be split into separate residues as required by GLYCAM. If this happens and 'runleap' has not been specified, CPPTRAJ will warn about any residues/atoms that require charge to be adjusted. If 'runleap' has not been specified the command will warn about any atoms that need to have their charges adjusted after LEaP is run.
The command will try to report any potential problems that LEaP might encounter. These include residue names that may be unrecognized (and therefore may not have parameters), mismatches between detected sugar anomer type/configuration and anomer type/configuration based on the sugar residue name, unrecognized sugar linkages, and so on.
For example, the following input prepares PDB 4zzw for processing with PDB, putting the proper leap commands in leap.4zzw.in, writing the prepared PDB to 4zzw.cpptraj.pdb, removing waters and hydrogen atoms, and keeping alternate atom locations with the highest occupancy: