Re: [PyMOL] pymol wildcards usage

2011-09-13 Thread Андрей Гончар
Thanks, it works!

2011/9/13 Thomas Holder :
> this is an open issue:
> http://sourceforge.net/tracker/?func=detail&aid=2182309&group_id=4546&atid=104546
>
>> Have you tried
>>
>> delete all and not obj1
>
> unfortunately this does not work, it will delete obj1.
>
> The expected result could be achieved with this workaround:
>
> python
> def delete2(selection):
>     names = cmd.get_names(selection=selection)
>     cmd.delete(' '.join(names))
> cmd.extend('delete', delete2)
> python end
>
> Cheers,
>   Thomas
>
>>     Hi all! I have a question about wildcards usage in pymol.
>>     For example if I want to delete all except obj1 I write:
>>     delete not obj1
>>     but this expression does not works as expected...
>>
>>     Is there a way in pymol to delete all except [something]?
>>     In selections these experssions work. But in object names they don't.
>>
>>
>>     --
>>
>>     Andrew Gontchar
>
> --
> Thomas Holder
> MPI for Developmental Biology
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry® mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry® DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1
> ___
> 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
>



-- 

Андрей Гончар

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
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

Re: [PyMOL] pymol wildcards usage

2011-09-13 Thread Thomas Holder
this is an open issue:
http://sourceforge.net/tracker/?func=detail&aid=2182309&group_id=4546&atid=104546

> Have you tried
>
> delete all and not obj1

unfortunately this does not work, it will delete obj1.

The expected result could be achieved with this workaround:

python
def delete2(selection):
 names = cmd.get_names(selection=selection)
 cmd.delete(' '.join(names))
cmd.extend('delete', delete2)
python end

Cheers,
   Thomas

> Hi all! I have a question about wildcards usage in pymol.
> For example if I want to delete all except obj1 I write:
> delete not obj1
> but this expression does not works as expected...
>
> Is there a way in pymol to delete all except [something]?
> In selections these experssions work. But in object names they don't.
>
>
> --
>
> Andrew Gontchar

-- 
Thomas Holder
MPI for Developmental Biology

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
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


Re: [PyMOL] pymol wildcards usage

2011-09-13 Thread Troels Emtekær Linnet
Have you tried

delete all and not obj1

Troels Emtekær Linnet
Karl-Liebknecht-Straße 53, 2 RE 
04107 Leipzig, Tyskland
Mobil: +49 1577-8944752



2011/9/13 Андрей Гончар 

> Hi all! I have a question about wildcards usage in pymol.
> For example if I want to delete all except obj1 I write:
> delete not obj1
> but this expression does not works as expected...
>
> Is there a way in pymol to delete all except [something]?
> In selections these experssions work. But in object names they don't.
>
>
> --
>
> Andrew Gontchar
>
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry® mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry® DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1
> ___
> 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
>
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
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

[PyMOL] pymol wildcards usage

2011-09-13 Thread Андрей Гончар
Hi all! I have a question about wildcards usage in pymol.
For example if I want to delete all except obj1 I write:
delete not obj1
but this expression does not works as expected...

Is there a way in pymol to delete all except [something]?
In selections these experssions work. But in object names they don't.


-- 

Andrew Gontchar

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
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


Re: [PyMOL] compare crystal packing of two different Space Groups

2011-09-13 Thread Thomas Holder
Hi Shukun,

> Thanks for your nice replies. I followed Tom's script, and the problem
> solved. Also, I found there was no difference whether the
> "segi=1"argument was appended or not. I've checked at the PymolWiki site
> and haven't found any "matrix_copy" arguments like 'segi'.

"matrix_copy" does not have a segi argument, but "symexp" has. I've 
updated the PyMOLWiki page:

http://pymolwiki.org/index.php/Symexp

> By the way, the old version of Pymol(0.99) may be the cause of failure
> last time I used the "Matrix_copy" command? I upgraded pymol to the
> version of 1.4.1, .

yes, the matrix_copy command was introduced after 0.99!

Cheers,
   Thomas

-- 
Thomas Holder
MPI for Developmental Biology

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
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