Re: [PyMOL] Get the color code of each residue when using spectrum?

2014-10-19 Thread Chen Zhao
Dear Tsjerk, I just got a chance to test the code and it works great for me. Now my task becomes to how to convert RGB codes in an efficient way. Anyway, thank you so much! Best, Chen On Sat, Oct 18, 2014 at 2:43 AM, Tsjerk Wassenaar tsje...@gmail.com wrote: Ni hao Chen Zhao, This works

Re: [PyMOL] Get the color code of each residue when using spectrum?

2014-10-19 Thread Thomas Holder
Hi Chen, I once wrote a save_colored_fasta function which exports an HTML file with the colored sequence. It's included in psico: http://pymolwiki.org/index.php/psico Cheers, Thomas Chen Zhao wrote, On 10/19/14 09:52: Dear Tsjerk, I just got a chance to test the code and it works great

Re: [PyMOL] Get the color code of each residue when using spectrum?

2014-10-19 Thread Chen Zhao
Dear Thomas, Thanks a lot, and I will try it out! Best, Chen On Sun, Oct 19, 2014 at 10:00 AM, Thomas Holder thomas.hol...@schrodinger.com wrote: Hi Chen, I once wrote a save_colored_fasta function which exports an HTML file with the colored sequence. It's included in psico:

Re: [PyMOL] Get the color code of each residue when using spectrum?

2014-10-18 Thread Tsjerk Wassenaar
Ni hao Chen Zhao, This works for me: col=[] iterate n. ca, col.append((chain,resi,name,cmd.get_color_tuple(color))) print col Cheers, Tsjerk On Sat, Oct 18, 2014 at 4:57 AM, Chen Zhao chenzhaoh...@gmail.com wrote: Dear all, Is it possible to get the color code of each residue if I color

[PyMOL] Get the color code of each residue when using spectrum?

2014-10-17 Thread Chen Zhao
Dear all, Is it possible to get the color code of each residue if I color the whole molecule by B-factor using spectrum? I would like to make a figure with the same colors on the primary sequence. Thank you so much in advance. Best, Chen