Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protein-ligand OpenMM example - generating chemical .xml files #309

Open
gcorso opened this issue Aug 5, 2022 · 0 comments
Open

Protein-ligand OpenMM example - generating chemical .xml files #309

gcorso opened this issue Aug 5, 2022 · 0 comments

Comments

@gcorso
Copy link

gcorso commented 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?

xml_filename = "./chemicals/%s/%s.xml" % (ligand_name, ligand_name)

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)
@gcorso gcorso changed the title Generating chemical .xml files Protein-ligand OpenMM example - generating chemical .xml files Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant