Hi Irem,

You could use

__main__.pymol_argv = ['pymol','-qc']


the "c" suppress the GUI.


Cheers,
Osvaldo.

On Sun, Mar 8, 2015 at 9:32 PM, Irem Altan <irem.al...@duke.edu> wrote:

>  Hi,
>
>  I have recently started to play with PyMOL and using python scripts. Is
> it possible to create a new selection without launching the GUI? I want to
> manipulate the selection and calculate the surface area, and then delete
> it. I will be doing this for a lot of proteins so I would like to be able
> to batch process with a script.
>
>  The code that I currently have is as follows:
>
>   import __main__
>  __main__.pymol_argv = ['pymol', '-qei']
>
>  import pymol
>  from pymol import cmd, stored
>  pymol.finish_launching()
>  import sys, getopt
>
>  name = sys.argv[1]
>
>  cmd.fetch(name, "protein")
>  cmd.create("__tmp", name)
>  cmd.remove("__tmp" + " and b < " + str(2.5))
>
>
>  I suspect that it is the cmd.create("__tmp", name) function that
> launches the GUI — am I correct? If so, what are my options?
>
>  Thank you,
> Irem
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to