[PyMOL] Batch processing

2015-06-05 Thread Praz Nina
Hi all, I'm a beginner at PyMol, but I'm wondering if a batch action like this would be possible: If I have a bunch of .sdf and .pdb files in a folder, and I want to apply a specific "look" to all of them (I've written the parameters regarding light, field of view etc.), is it possible to batch pr

Re: [PyMOL] Batch processing

2015-06-08 Thread Praz Nina
ort pymol > from pymol import cmd > pymol.finish_launching() > import glob > > pdb_files = glob.glob('*.pdb') > for pdb in pdb_files: > cmd.load(pdb) > ### insert your code here ### > cmd.png('%s' % pdb.split('.')[0]) > cmd.

Re: [PyMOL] Batch processing

2015-06-08 Thread Praz Nina
> <http://stackoverflow.com/questions/9493086/python-how-do-you-run-a-py-file>. > Sorry about not explaining this before. The version I am sending you know > should work with any of the 3 running methods. > > Cheers, > > Osvaldo. > > On Mon, Jun 8, 2015 at 7:27 AM,

Re: [PyMOL] Batch processing

2015-06-08 Thread Praz Nina
Jun 8, 2015 at 3:08 PM, Osvaldo Martin wrote: > Glad is working! > Since the script is a Python script (not a PyMOL script) you should be > using the PyMOL API syntax. For example: > >- “set light_count,8” becomes cmd.set(“light_count”, “8”) > - “load filename” becomes c

[PyMOL] Line transparency

2017-01-14 Thread Praz Nina
Dear all, I am wondering if it's possible to vary the transparency of the line representation in PyMol. Currently I display the protein as a cartoon, then duplicate the object and display it as a line (preset: technical, to be specific), but I want the line representation to be less visible. Of c