You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to run OpenMM on protein-ligand complexes. I have the pdb file of the protein and the mol2 file of the ligand with their respective positions. I came across the solution in the examples/test_protein_ligand file. However, I am not sure how is the chemical .xml file generated in the example below?
This issue on openmm is originally where I found the script and may contain some useful information.
Thanks for the help,
Gabriele
Edit. In case more context is useful, this is the code I'm using:
#pdb is a PDBFile object and rd_mol is an RDKit molecule coming from a mol2 file
molpdb_file = io.StringIO(Chem.MolToPDBBlock(rd_mol))
molpdb = openmm_app.PDBFile(molpdb_file)
model = openmm_app.modeller.Modeller(pdb.topology, pdb.positions)
model.add(molpdb.topology, molpdb.positions)
force_field = openmm_app.ForceField("amber10.xml", ..., "tip3p.xml") # this is where the .xml I'm missing should go
system = force_field.createSystem(model.topology, nonbondedMethod=openmm_app.PME, nonbondedCutoff=1.0 * unit.nanometers, constraints=openmm_app.HAngles)
The text was updated successfully, but these errors were encountered:
gcorso
changed the title
Generating chemical .xml files
Protein-ligand OpenMM example - generating chemical .xml files
Aug 5, 2022
Hi,
I'm trying to run OpenMM on protein-ligand complexes. I have the pdb file of the protein and the mol2 file of the ligand with their respective positions. I came across the solution in the examples/test_protein_ligand file. However, I am not sure how is the chemical .xml file generated in the example below?
openmoltools/examples/test_protein_ligand.py
Line 9 in affdcc2
This issue on openmm is originally where I found the script and may contain some useful information.
Thanks for the help,
Gabriele
Edit. In case more context is useful, this is the code I'm using:
The text was updated successfully, but these errors were encountered: