Question: Draw Bonds In Pymol And Color Them
2
gravatar for Gonzalo Parra
7.6 years ago by
Argentina
Gonzalo Parra40 wrote:

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 protein structure • 7.4k views
ADD COMMENTlink modified 7.6 years ago by Jan Kosinski1.6k • written 7.6 years ago by Gonzalo Parra40
2
gravatar for Jan Kosinski
7.6 years ago by
Jan Kosinski1.6k
Jan Kosinski1.6k wrote:

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 COMMENTlink written 7.6 years ago by Jan Kosinski1.6k

Thank you very much! It worked for me!

ADD REPLYlink written 7.6 years ago by Gonzalo Parra40
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 717 users visited in the last hour