Draw Bonds In Pymol And Color Them
1
2
Entering edit mode
12.8 years ago

Hello everyone,

I was trying to make a pymol script. I have to draw different lines in my pdb structure with different colors.

So, I find the way to draw a bond between to atoms, for example.

"bond resi 234 and resn GLU and name CA, resi 259 and resn SER and name CA"

But it always draw the bond with the same color. And I wasn't able to change a bond color without changing every bonds color.

How can I color one specific bond color, for example just the bond that bonds resi 234 and resn GLU and name CA and resi 259 and resn SER and name CA?

Thanks in advance

Gonzalo

pymol format structure protein • 15k views
ADD COMMENT
3
Entering edit mode
12.8 years ago
Jan Kosinski ★ 1.6k

set_bond line_color, red, resi 234 and resn GLU and name CA, resi 259 and resn SER and name CA

Refs:

http://www.pymolwiki.org/index.php/Set_bond

http://www.pymolwiki.org/index.php/Line_color

ADD COMMENT
0
Entering edit mode

Thank you very much! It worked for me!

ADD REPLY

Login before adding your answer.

Traffic: 2857 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6