Skip to content
Discussion options

You must be logged in to vote

Letting the forefield parameterize everything at once isn't possible because I'm using a bunch of non-standard combinations of forces to create alchemical states along a reaction pathway. I went with the following code in the end. The main difficulty was that the documentation for registeratomtype and registerresiduetemplate was rather limited and I ended up digging in the source code to figure out how to use these function.

pdb_file = mmapp.PDBFile(self.pdb)
topology = pdb_file.getTopology()
forcefield = mmapp.ForceField('amber14-all.xml', 'amber14/tip3pfb.xml')
templates, residues = forcefield.generateTemplatesForUnmatchedResidues(topology)

for t, template in enumerate(templates):
    …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@peastman
Comment options

@BastiaanvHoorn
Comment options

Answer selected by BastiaanvHoorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants