vmd-python icon indicating copy to clipboard operation
vmd-python copied to clipboard

add label and specific color for some resid

Open huangziyan11111 opened this issue 5 years ago • 1 comments

Hi, I'd like to emphasize one residue caused by mutation, like the red frame on the right side of this picture. image assuming we have a mutation on resid 11. I add the label by this code: "label.add('Atoms',[0],[11])". It showed like the following picture, I am confused why the label is "LEU9:C" because the specific number of resid is 11. On the other hand, Can I add self-defined text label? image

The other question is about the color, how can I change the color of specific resid? and this change can be rendered out as file "*dat".

Could you help me about these questions about label and color? Thank you.

huangziyan11111 avatar Jul 16 '20 08:07 huangziyan11111

There are certain things that are going to be MUCH easier with a standard installation of VMD, and this is one of them, since you get immediate visual feedback. In terms of adding a label, what most folks do is add them in post-processing, since VMD's labeling is butt-ugly.

jvermaas avatar Jul 16 '20 09:07 jvermaas