Hi Jeff,

10 minutes is a long time for a 800 by 800 pixel image.
Maybe you need to use a computer with more memory.

You can set the dpi in the argument to the png command to a lower value like 
300 or 200 to speed up writing the png file.
You can also turn off the casting of shadows:  cmd.do("set ray_shadows,off"), 
which might save a few seconds.

Best regards,

Blaine

Blaine Mooers, Ph.D.
Associate Professor
Department of Biochemistry and Molecular Biology
College of Medicine
University of Oklahoma Health Sciences Center
S.L. Young Biomedical Research Center (BRC) Rm. 466
975 NE 10th Street, BRC 466
Oklahoma City, OK 73104-5419

________________________________________
From: Jeff Saxon [jmsstarli...@gmail.com]
Sent: Wednesday, October 21, 2020 4:03 AM
To: pymol-users
Subject: [EXTERNAL] [PyMOL] Generation of images using png

Dear PyMol users,
I am generating png images of protein-ligand complex using png command
of pymol. This is the syntax that I am using from my bash script:

image=800
pdb='my.pdb'
# load pdb, split states, make image
  MacPyMOL -c -d "
  from pymol import cmd
  cmd.load('${pdb}')
  cmd.split_states('complex*')
  cmd.bg_color('white')
 
cmd.draw(${image},${image});cmd.png('test.png',width=${image},height=${image},ray=1)
  "

Briefly, it works well but the time of the production of each image is
up to 10 minutes (in the case if I have many models in my.pdb). Is it
possible to speed PNG, while keeping the same resolution of image
(800x800)?

Cheers,
J.


_______________________________________________
PyMOL-users mailing list
Archives: 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_pymol-2Dusers-40lists.sourceforge.net&d=DwICAg&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=dR6VXes1u9h9KRDTJ3O_4buil9-Nbow2k7Zm5Q3PKQM&s=6yGrvyC36T9_kcNYvKJuml1-crRw2Sxuz4rvhpoS8ac&e=
Unsubscribe: 
https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_projects_pymol_lists_pymol-2Dusers_unsubscribe&d=DwICAg&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=dR6VXes1u9h9KRDTJ3O_4buil9-Nbow2k7Zm5Q3PKQM&s=1dpWe_laCFcfkMNzKcE1bNSXz6dvC6fkVX1QqUEUdjc&e=


_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

Reply via email to