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

Energy calculation process is insufficient #1

Open
sishida21 opened this issue Dec 9, 2019 · 0 comments
Open

Energy calculation process is insufficient #1

sishida21 opened this issue Dec 9, 2019 · 0 comments

Comments

@sishida21
Copy link

sishida21 commented Dec 9, 2019

When calculating a energy of a molecule, It is desirable to generate the multiple conformations and calculate energies of each conformation. Finally, pick up the minimum energy.

generated conformation = 1

mol = Chem.MolFromSmiles("CC1=C=C(C1)C(CN)C1CC2C=C=C(N)N12")
Chem.AddHs(mol)
AllChem.EmbedMolecule(mol, randomSeed=0)
AllChem.UFFOptimizeMolecule(mol, maxIters=200)
ff = AllChem.UFFGetMoleculeForceField(mol)
ff.Minimize()
energy=ff.CalcEnergy()
print(energy)
# 292.87865326525343

generated conformation = 50

mol = Chem.MolFromSmiles("CC1=C=C(C1)C(CN)C1CC2C=C=C(N)N12")
#mol = Chem.MolFromSmiles("CC1CC(C1)C(CN)C1CC2CC=C(N)N12")
Chem.AddHs(mol)
cids = AllChem.EmbedMultipleConfs(mol, numConfs=50, randomSeed=1234, )
energy = []
for cid in cids:
    uff = AllChem.UFFGetMoleculeForceField(mol, confId=cid)
    uff.Minimize()
    energy.append(uff.CalcEnergy())
print(sorted(energy)[0])
# 289.1678549534872
kojima-r added a commit that referenced this issue Jan 26, 2021
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