You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello i read the whole documentation but couldn't figure out how to color each residue based on its index by mapping it to an array of hexadecimal code for colors
example:
["#6a9374","#6a9374"]
residue 1 -> #6a9374
residue 2 -> #6a9374
The text was updated successfully, but these errors were encountered:
I think you might want to [https://pv.readthedocs.io/en/latest/coloring.html#adding-a-new-color-operation](add a custom color operation). The operation gets called for every atom to be colored. By going back to the residue of the atom, you can get its index (atom.residue().index()) and then use that to index into the color array. I hope that helps.
Hello i read the whole documentation but couldn't figure out how to color each residue based on its index by mapping it to an array of hexadecimal code for colors
example:
["#6a9374","#6a9374"]
residue 1 -> #6a9374
residue 2 -> #6a9374
The text was updated successfully, but these errors were encountered: