[chimerax-users] Copy attribute value from one attribute to another

Elaine Meng meng at cgl.ucsf.edu
Wed Nov 2 10:17:47 PDT 2022


Hi Sean,
If the sharing is for Chimera or ChimeraX users, you can save it as an "attribute assignment file"
<https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html>

As for reassigning bfactor with the values of some other attribute, you can do it with a short bit of python, which somebody else on the ChimeraX team can provide (soon).  You may lose significant digits writing it out in the bfactor column of a PDB file, however.

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Nov 2, 2022, at 3:39 AM, Sean Connell via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Hello, I have a question with a probably obvious answer but I cannot figure it out. 
> 
> Is there a command to copy an attribute value from one attribute to another, for example, seq_conservation to bfactor? The idea would be to save a pdb file with the conservation stored in bfactor (for sharing). In this case I guess there is the issue that one is an atom attribute and the other is residue attribute but one could assign all atoms of the residue the same value.
> 
> Sorry in advance if I miss something obvious.




More information about the ChimeraX-users mailing list