[Chimera-users] Display Molecule Name
gregc at cgl.ucsf.edu
Thu Jul 2 23:34:18 PDT 2009
So this is more of a chimera-dev question than a chimera-users question.
If you have a Molecule object, m, it's textual "atom specification" would
be (in Python):
"#%d.%d" % (m.id, m.subid)
Normally, if the subid is zero, we leave it out.
To find out which molecules are currently being displayed can be harder:
for m in chimera.openModels.list(modelTypes=[chimera.Molecule]):
if not m.display:
# molecule displayed, but constituents might not be
# if that distinction is important (probably not for
# ViewDock), then check bounding box
valid, bbox = m.bbox()
if not valid:
# process molecule
Hope this helps,
On Thu, 2 Jul 2009, cdlau at ucsd.edu wrote:
> Thanks for the response. This would not work for my case because I am
> writing a plugin for ViewDock for use with a Tiled Wall Display. I was
> hoping there was a setting that was available to show the molecule name
> (if a setting does exist I can initiate it with runCommand). Does anyone
> know if this is possible?
> On Thu, 2 Jul 2009, cdlau at ucsd.edu wrote:
> I was wondering if there was a way to display the molecule name that is
> being shown in chimera. A simple display such as "molecule #0.10" below
> the rendered molecule would be great.
> Thanks for your help,
> Just place the mouse over the item you want to know more about and a popup
> balloon will tell you about it. The text starts with the model number,
> e.g., #0.10, and may or may not have additional information, i.e., for an
> atom it includes the residue name and sequence number and the atom name.
> - Greg
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
More information about the Chimera-users