This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Draw Bonds In Pymol And Color Them

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

1 answer

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

Log in to answer this question.