Hi Blaine,

Thanks for that!

And is there an equivalent for the settings in 's'?
So for example I can
PyMOL> iterate 4zho//A/26/CA,print(s.transparency)
PyMOL> 0.0
but how to find all values in 's'?

Best regards,

Mungo




[University of Dundee shield logo]<http://uod.ac.uk/sig-home>

Mungo Carstairs
Jalview Computational Scientist

The Barton Group
Division of Computational Biology

School of Life Sciences

University of Dundee, Dundee, Scotland, UK

www.jalview.org<http://www.jalview.org>

www.compbio.dundee.ac.uk<http://www.compbio.dundee.ac.uk>
g.m.carsta...@dundee.ac.uk<mailto:g.m.carsta...@dundee.ac.uk>

[University of Dundee Facebook]<http://uod.ac.uk/sig-fb> [University of Dundee 
Twitter] <http://uod.ac.uk/sig-tw>  [University of Dundee LinkedIn] 
<http://uod.ac.uk/sig-li>  [University of Dundee YouTube] 
<http://uod.ac.uk/sig-yt>  [University of Dundee Instagram] 
<http://uod.ac.uk/sig-ig>  [University of Dundee Snapchat] 
<http://uod.ac.uk/sig-sc>
We're Scottish University of the Year again!<http://uod.ac.uk/sig-strapline>
The Times / Sunday Times Good University Guide 2016 and 2017
________________________________
From: Mooers, Blaine H.M. (HSC) <blaine-moo...@ouhsc.edu>
Sent: 19 May 2020 11:47
To: Mungo Carstairs (Staff) <g.m.carsta...@dundee.ac.uk>; 
pymol-users@lists.sourceforge.net <pymol-users@lists.sourceforge.net>
Subject: RE: How to inspect contents of 's' and 'p' for an atom?

Hi Mungo,

See https://pymol.org/dokuwiki/doku.php?id=properties.

This command will print the dictionary of properties for all of the atoms:

iterate /4zho//A/*/*, print(properties.all)

Note the Python3 print() function.
The documentation needs to be updated.

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: Mungo Carstairs (Staff) [g.m.carsta...@dundee.ac.uk]
Sent: Tuesday, May 19, 2020 2:59 AM
To: pymol-users@lists.sourceforge.net
Subject: [EXTERNAL] [PyMOL] How to inspect contents of 's' and 'p' for an atom?

A PyMOL novice question here.

I can write custom atom properties to its 'p' dictionary, and print them:
PyMOL>fetch 4zho

PyMOL>iterate 4zho//A/26/CA, p.metal_binding='Fe'

PyMOL>iterate 4zho//A/26/CA, print(p.metal_binding)

Fe

but how do I list the contents of the dictionary if I don't know what is in it?
PyMOL>iterate 4zho//A/26/CA, print(p)
<wrapper.PropertyWrapper object at 0x1140dcdb0>

Same question for 's':
PyMOL>iterate 4zho//A/26/CA, print(s)
<wrapper.SettingWrapper object at 0x1140dcdb0>

Better still, where would I find documentation for this?

Thanks,

Mungo



[University of Dundee shield 
logo]<https://urldefense.proofpoint.com/v2/url?u=http-3A__uod.ac.uk_sig-2Dhome&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=pmTCDQ9ha-o3qwfjfSbuYLQz0XZbmOSqwVrXsZ_2fp0&e=>

Mungo Carstairs
Jalview Computational Scientist

The Barton Group
Division of Computational Biology

School of Life Sciences

University of Dundee, Dundee, Scotland, UK

www.jalview.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jalview.org&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=-UiHxQOxQJ-_dOEQTH12p44HwnTBPZR71UdC0t-S9vg&e=>

www.compbio.dundee.ac.uk<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.compbio.dundee.ac.uk&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=4jADXbKgk9zw8K4gCxAuEXDQSjxy0lmWc0EcCG2MXAU&e=<http://www.compbio.dundee.ac.uk<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.compbio.dundee.ac.uk&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=4jADXbKgk9zw8K4gCxAuEXDQSjxy0lmWc0EcCG2MXAU&e=>>
g.m.carsta...@dundee.ac.uk<mailto:g.m.carsta...@dundee.ac.uk>



[University of Dundee 
Facebook]<https://urldefense.proofpoint.com/v2/url?u=http-3A__uod.ac.uk_sig-2Dfb&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=Zv7b9JC5FguqJKxVXu1K946gu5V0etAuUPnXR35MUu4&e=>
 [University of Dundee Twitter] 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__uod.ac.uk_sig-2Dtw&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=1Ffrx9SKGrWzDqjyeTAuGpjVUqGg8Sxapr0EZhgHfIg&e=>
  [University of Dundee LinkedIn] 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__uod.ac.uk_sig-2Dli&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=wwbmhxKBB-TiP1rBRqcgODeW2XVHkwoL0DIxXJUk1-c&e=>
  [University of Dundee YouTube] 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__uod.ac.uk_sig-2Dyt&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=Hcdds1luVJjEi1Saa3IcNqJ0Q70RT8YXd4Ahjxurwqc&e=>
  [University of Dundee Instagram] 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__uod.ac.uk_sig-2Dig&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=N_u7d6oJDQUVwkWmZIfXmhFXCRlB12EXpwSNm0X51qg&e=>
  [University of Dundee Snapchat] 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__uod.ac.uk_sig-2Dsc&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=bOODMXMLnba1FlkGk19uhuQddPjh4Izro1_I1w5yQCM&e=>
We're Scottish University of the Year 
again!<https://urldefense.proofpoint.com/v2/url?u=http-3A__uod.ac.uk_sig-2Dstrapline&d=DwMFAw&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HcZyTYAYwxaDM5jVRMvsUZT9bqmuiT6GegR62OpE3WY&s=79G2qVcWHlmL2CO5JAcN3ioTZmioZPCvOToJnlPfBoo&e=>
The Times / Sunday Times Good University Guide 2016 and 2017

The University of Dundee is a registered Scottish Charity, No: SC015096

The University of Dundee is a registered Scottish Charity, No: SC015096
_______________________________________________
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