-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised the atom-size recipe to note that the "size byattr" command n…
…ow exists
- Loading branch information
1 parent
d258203
commit aa1f9b1
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|