#14880 closed enhancement (fixed)

defattr Attribute File recipient value molecules or structures

Reported by: ccaffalett@… Owned by: Eric Pettersen
Priority: normal Milestone:
Component: Structure Editing Version:
Keywords: Cc: Elaine Meng
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Hello,
I am having difficulty with my *.defattr attribute file, and I am interested to know if there was a change in the value of recipient from "molecules" to "structures" at some point? I was using ChimeraX on two different machines, and one instance of ChimeraX refers to "molecules" and the other refers to "structures".

Best,
Chris Caffalette

Attachments (4)

image.png (82.7 KB ) - added by ccaffalett@… 19 months ago.
Added by email2trac
image-1.png (24.6 KB ) - added by ccaffalett@… 19 months ago.
Added by email2trac
Outlook-n1bgekhr.png (940.2 KB ) - added by ccaffalett@… 19 months ago.
Added by email2trac
image-2.png (661.6 KB ) - added by ccaffalett@… 19 months ago.
Added by email2trac

Download all attachments as: .zip

Change History (8)

comment:1 by ccaffalett@…, 19 months ago

Hello,
I apologize, this was started because I thought I could use #1/A to define an attribute value for an ID/Chain. However, I realize now that I can only use the #1.1 nomenclature after splitting the molecule into each chain as sub IDs. Is there any way to refer to specific chains or only structure ID?

While I was having difficulty building attribute files for ChimeraX, I was reviewing https://www.cgl.ucsf.edu/chimerax/docs/user/formats/defattr.html where I saw the “molecules” recipient. I must have mistakenly thought I saw it in the ChimeraX Render by Attributes as well.

Thank you, and I apologize for the inconvenience.

Best,
Chris



On Apr 3, 2024, at 00:45, ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu> wrote:

Caution: External email

#14880: defattr Attribute File recipient value molecules or structures
--------------------------+-----------------------------
Reporter:  ccaffalett@…  |                Type:  defect
  Status:  new           |            Priority:  normal
Component:  Unassigned    |          Blocked By:
Blocking:                |  Notify when closed:
--------------------------+-----------------------------
--
Ticket URL: <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.rbvi.ucsf.edu_trac_ChimeraX_ticket_14880&d=DwIGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=nn6NjO3O7Q3PXmOR60aUp-5a_7DeTCpr_5i98LXGSUA&m=CoTegpatehnv2rIEpTe6Xj_IfPunC6vuzp-ijoyecnLonlqRnPvD9qeThrQ9M16Z&s=hQFAX3EqHskGlmbK6OpwaGPVekzlm732R-p8s_8xRQ4&e= >
ChimeraX <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.rbvi.ucsf.edu_chimerax_&d=DwIGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=nn6NjO3O7Q3PXmOR60aUp-5a_7DeTCpr_5i98LXGSUA&m=CoTegpatehnv2rIEpTe6Xj_IfPunC6vuzp-ijoyecnLonlqRnPvD9qeThrQ9M16Z&s=CeI6wp5l49MhZDlxAuircIKivhHcoi4DRWLCIHh3Aaw&e= >
ChimeraX Issue Tracker

comment:2 by Eric Pettersen, 19 months ago

Component: UnassignedStructure Editing
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted
Type: defectenhancement

Hi Chris,

The defattr file uses "molecules" to be backwards compatible with files used with our previous Chimera program. With ChimeraX we prefer the nomenclature "structures", which is why you see that in the Render By Attribute interface. It would seem good to allow that same term in defattr files (along with backwards-compatible "molecules").
Though the setattr command allows setting chain attributes, the defattr file doesn't currently support it. It probably should. We don't currently show chain attributes in the Render By Attribute tool basically because there are no interesting chain attributes to render by. If there was some compelling use case, that could be changed.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

comment:3 by ccaffalett@…, 19 months ago

Hi Eric,
Thank you so much for this information. All of this stems from the desire to create a custom attribute, such as "pValue", and visualize an atomic model with a heat-map-like coloring of chains according to experimentally-determined numbers. In this particular case, the atomic models are of large complexes with many Chains representing the individual proteins of the complex. I originally, thought that I could use the atom-spec nomenclature to specify a range of Chains for molecule ID #1, such as #1/A-F, in a *.defattr attribute assignment file. However, since you mentioned that the setattr command will accept chains, I will instead create a complex setattr command delimited by semicolons to perform the same assignment of a custom attribute with "create true" e.g. the following setattr command and the cyan-grey-maroon palette in Render by Attribute.

setattr #1/A-G res pValue 0.001 create true; setattr #1/H-N res pValue 0.005 create true; setattr #1/O-U res pValue 0.009 create true

[cid:5e3d89e7-4222-4442-b903-0232a233b87b]
[cid:90075dcc-aac8-4398-a526-98a0f50da491][cid:0a263e08-bade-4f4c-8995-67750a89308e]
[cid:54b17d82-f808-490a-a7e4-30f50587b0a3]

Thank you again, Eric!

Best,
Chris Caffalette


________________________________
From: ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
Sent: Wednesday, April 3, 2024 2:13 PM
To: Chris Caffalette <ccaffalett@rockefeller.edu>; pett@cgl.ucsf.edu <pett@cgl.ucsf.edu>
Subject: Re: [ChimeraX] #14880: defattr Attribute File recipient value molecules or structures

Caution: External email

#14880: defattr Attribute File recipient value molecules or structures
----------------------------------------+----------------------
          Reporter:  ccaffalett@…       |      Owner:  pett
              Type:  enhancement        |     Status:  accepted
          Priority:  normal             |  Milestone:
         Component:  Structure Editing  |    Version:
        Resolution:                     |   Keywords:
        Blocked By:                     |   Blocking:
Notify when closed:                     |   Platform:  all
           Project:  ChimeraX           |
----------------------------------------+----------------------
Changes (by pett):

 * component:  Unassigned => Structure Editing
 * owner:  (none) => pett
 * platform:   => all
 * project:   => ChimeraX
 * status:  new => accepted
 * type:  defect => enhancement

Comment:

 Hi Chris,
         The defattr file uses "molecules" to be backwards compatible with
 files used with our previous Chimera program.  With ChimeraX we prefer the
 nomenclature "structures", which is why you see that in the Render By
 Attribute interface.  It would seem good to allow that same term in
 defattr files (along with backwards-compatible "molecules").
         Though the setattr command allows setting chain attributes, the
 defattr file doesn't currently support it.  It probably should.  We don't
 currently show chain attributes in the Render By Attribute tool basically
 because there are no interesting chain attributes to render by.  If there
 was some compelling use case, that could be changed.

 --Eric

         Eric Pettersen
         UCSF Computer Graphics Lab
--
Ticket URL: <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.rbvi.ucsf.edu_trac_ChimeraX_ticket_14880-23comment-3A2&d=DwIGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=nn6NjO3O7Q3PXmOR60aUp-5a_7DeTCpr_5i98LXGSUA&m=p-uNjNyOY9bg-C0wDHT2tYUEKBHdh8zuwwcIZJnolHWigvh76jDYGeajjQxZBDSy&s=amwTnE9WpyP_2KTMfXctewrAZHyBwrkwtdFF18Q348s&e= >
ChimeraX <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.rbvi.ucsf.edu_chimerax_&d=DwIGaQ&c=JeTkUgVztGMmhKYjxsy2rfoWYibK1YmxXez1G3oNStg&r=nn6NjO3O7Q3PXmOR60aUp-5a_7DeTCpr_5i98LXGSUA&m=p-uNjNyOY9bg-C0wDHT2tYUEKBHdh8zuwwcIZJnolHWigvh76jDYGeajjQxZBDSy&s=oQI6H2eSAyxSCmoc3yeglGWtI-uWD4kLmj8GCuFPH9Q&e= >
ChimeraX Issue Tracker

Added by email2trac

Added by email2trac

Added by email2trac

Added by email2trac

by ccaffalett@…, 19 months ago

Attachment: image.png added

Added by email2trac

by ccaffalett@…, 19 months ago

Attachment: image-1.png added

Added by email2trac

by ccaffalett@…, 19 months ago

Attachment: Outlook-n1bgekhr.png added

Added by email2trac

by ccaffalett@…, 19 months ago

Attachment: image-2.png added

Added by email2trac

comment:4 by Eric Pettersen, 19 months ago

Cc: Elaine Meng added
Resolution: fixed
Status: acceptedclosed

Actually, the *code* already supports all the features I outlined, as well as allowing setting attributes for bonds and pseudobonds! It's just that the description in the help page needs updating.

Note: See TracTickets for help on using tickets.