I kept getting the error message of Color error: Unknown color at the last step of trying to color the protein with an rgb gradient according to B factors.
I loaded the data2bfactor.py and color_b.py files, run data2b_res command with proper labeling of B values at each protein residue correctly shown. When I run the last line, color_b('all', nbins=6, gradient='rgb'), the bins were even categorized to proper B ranges, and then I got the Unknown color error.
Could someone pass a clue? Thanks a lot!