Just fixed Re: [Chimera-users] WinXP SP1 python error on File -> Open
Dear Eric, I just join the Chimera-users discussion group and haven't got reply email. However I checked the archive and found your reply email related to the WinXP SP1 python error on File -> Open. I have been using Chimera to generate the colorful ribbon picture for the pdb file using command line. Now I am tring to figure out the general way of defining the bfactor range corresponding to the different colors. I found the flexible python code for making the rainbow color by bfactor and tried it out. But it ended up with the file/open error message as I didn't see any problem in the code. Attached please find the copy of the python code. I did replace bo and b1 by min and max of bfactors in the pdb file. Your help and suggestion are greatly appreciated. Li Wang Biomedical Informatics of OSU Columbus, OH (w) (614)688-3236
I have been using Chimera to generate the colorful ribbon picture for the pdb file using command line. Now I am tring to figure out the general way of defining the bfactor range corresponding to the different colors. I found the flexible python code for making the rainbow color by bfactor and tried it out. But it ended up with the file/open error message as I didn't see any problem in the code.
Dear Li, In more recent versions of Chimera (yes, we do recommend getting 1.2065), there are easy ways to color by B-factor that do not require making a python script. First, there is the tool Render by Attribute, which shows the B-factor values on a histogram. You can put as many colored sliders as you want on the histogram to define the coloring. If you want to color the ribbon, you need to change to residue attributes and then pick the average B-factor as an attribute (since the ribbon can only have one color per residue, not per atom). See the man page at http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/render/ render.html Second, there is the command "rangecolor," which also colors according to attribute values (the B-factor is just one of many attributes). It depends whether you prefer the graphical interface or typing commands. See the man page at http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/rangecolor.html I didn't look at your script, but I think these are much nicer ways of showing numerical values on the structure. I hope this helps, Elaine =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Elaine C. Meng, Ph.D. meng@cgl.ucsf.edu Computer Graphics Lab and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco http://www.cgl.ucsf.edu/home/meng/index.html =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
participants (2)
-
Elaine Meng
-
Li Wang