Skip to content

Commit

Permalink
Revised the atom-size recipe to note that the "size byattr" command n…
Browse files Browse the repository at this point in the history
…ow exists
  • Loading branch information
e-pettersen committed Nov 23, 2023
1 parent d258203 commit aa1f9b1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions atomsize/atomsize.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Set atom radius using bfactor

Note that beginning with the ChimeraX 1.8 daily build, there is now an "size byattribute" command that provides the same kind of functionality as this recipe. The commands to exactly duplicate the recipe example would be:

open 7w91
size byattr bfactor 20:.6 300:9

though simply:

open 7w91
size byattr bfactor

produces a very reasonable result.

Eric Pettersen, November 22, 2023

## Previous recipe for reference

Here is Python code defining a command "atomsize" that sets the radius of atom spheres to be proportional to an attributre such as bfactor. Zhiyuan Liu [asked](https://mail.cgl.ucsf.edu/mailman/archives/list/[email protected]/thread/SOU7SFWCXBL3J6DUSZ5YJMDORGKWCJON/) about this for showing gene expression on genome structure models in ChimeraX. Here is an example that shows atom radii proportional to bfactor.

open atomsize.py
Expand Down

0 comments on commit aa1f9b1

Please sign in to comment.