Rendering by arbitrary attributes in external file

Hi chimera team, I use the Render by Attribute function frequently for models, but to date, I have only ever used it for rendering attributes determined 'internally' by chimera (hydrophobicity, AA conservation from an MSA etc). Is there a way to render residues by an arbitrary set of parameters? Imagine for instance, I have a csv that maps a residue number to a value (between 0 and 1). In my case this is antigenicity. ResNum, Res, Value 1, A, 0.927 2, T, 0.872, 3, W, 0.738 ... Can I read this file in via python/chimera commands and apply these values from an external file? Many thanks Joe Healey M.Sc. B.Sc. (Hons) MRSB PhD Student MOAC CDT, Senate House University of Warwick Coventry CV47AL Mob: +44 (0) 7536 042620 | Email: J.R.J.Healey@warwick.ac.uk Jointly working in: Waterfield Lab<http://www2.warwick.ac.uk/fac/med/research/tsm/microinfect/staff/waterfieldlab/> (WMS Microbiology and Infection Unit) and the Gibson Lab<http://www2.warwick.ac.uk/fac/sci/chemistry/research/gibson/gibsongroup/> (Warwick Chemistry) Twitter: @JRJHealey<https://twitter.com/JRJHealey> | Website: MOAC Page<http://www2.warwick.ac.uk/fac/sci/moac/people/students/2013/joseph_healey> | ORCID: orcid.org/0000-0002-9569-6738

Hi Joe, Yes, we have an input format that is specifically for this purpose: defining your own custom attributes for coloring, specification, etc. The format is described here: <http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/defineattrib.html#attrfile> … and the file is read in using the “Define Attribute” tool or “defattr” command: <http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/defineattrib.html> <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/defattr.html> After the file is read, your custom attribute(s) will be listed in the Render dialog. You may need to Refresh the attribute list if the dialog was already open. I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Jan 3, 2019, at 5:22 AM, Healey, Joe <J.R.J.Healey@warwick.ac.uk> wrote:
Hi chimera team, I use the Render by Attribute function frequently for models, but to date, I have only ever used it for rendering attributes determined 'internally' by chimera (hydrophobicity, AA conservation from an MSA etc).
Is there a way to render residues by an arbitrary set of parameters?
Imagine for instance, I have a csv that maps a residue number to a value (between 0 and 1). In my case this is antigenicity.
ResNum, Res, Value 1, A, 0.927 2, T, 0.872, 3, W, 0.738 ...
Can I read this file in via python/chimera commands and apply these values from an external file? Many thanks Joe Healey
participants (2)
-
Elaine Meng
-
Healey, Joe