
Hi Dominik, Render by Attribute shows attributes that have been “registered” with ChimeraX. The call to register a Residue attribute named my_plugin_rmsd would be: from chimerax.atomic import Residue Residue.register_attr(session, “my_plugin_rmsd”, “registrant info”, attr_type=float) The “registrant info” string should be some string that identifies the source of the registration — so your plugin name for instance. Registering the attribute also means it will be saved/restored in sessions. I don’t know if you’re planning to use the chimerax.seqalign.Alignment class in your plugin, but if you did then setting its RMSD header’s ’shown’ attribute to True would register and set ’seq_rmsd’ attributes for associated chains, e.g.: for header in alignment.headers: if header.ident == “rmsd”: header.shown = True If you have any questions about the alignment/header classes/architecture, let me know. --Eric Eric Pettersen UCSF Computer Graphics Lab
On Aug 31, 2023, at 4:47 AM, Dominik Sordyl via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi,
I am developing the custom plugin for sequence alignment and structure superposition, that will have it's own sequence viewer. I would like to use 'Render by attribute" feature of ChimeraX 1.16. But without using 'matchmaker ... show True' I do not have such option.
Is there a way to pass the rmsd values for superimposed structures' residues to be available for 'render by attribute'?
While looking through the ChimeraX source code, I have noticed that it uses Sequence Viewer headers to store rmsd, but I can not figure out how can I add such thing to my plugin.
Best, Dominik
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu <mailto:chimerax-users@cgl.ucsf.edu> To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu <mailto:chimerax-users-leave@cgl.ucsf.edu> Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/