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

Chimera dms and sphgen to generate receptor.sph file #8

Open
Ding-qh opened this issue Apr 24, 2023 · 0 comments
Open

Chimera dms and sphgen to generate receptor.sph file #8

Ding-qh opened this issue Apr 24, 2023 · 0 comments

Comments

@Ding-qh
Copy link

Ding-qh commented Apr 24, 2023

I use chimera to get the receptor.sph file of the receptor pdb file, as follows:
chimera_in='''from chimera import runCommand, openModels, MSMSModel
runCommand("surf")
surf = openModels.list(modelTypes=[MSMSModel])[0]
surf = openModels.list(modelTypes=[MSMSModel])[0]
writeDMS(surf, "receptor.ms")'''
chimeradms = open('ms.py', 'w+'); chimeradms.write(chimera_in); chimeradms.close()
os.system('chimera --nogui receptor_tmp.mol2 ms.py')
sphgen_in='''receptor.ms
R
X
0.0
4.0
1.4
spheres.sph'''
sphgen = open('INSPH', 'w+'); sphgen.write(sphgen_in); sphgen.close()
os.system("sphgen")
Get the following error:
image
The temp3.atc file is shown below:
image

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