Color by conservation
Jump to navigation Jump to search
|This code has been put under version control in the project Pymol-script-repo|
This script reads an alignment object and colors the protein objects in the alignment by the sequence conservation found in the alignment.
reinitialize import color_by_conservation # get some kinases fetch 1opk 3dtc 3p86 2eva 3efw, async=0 # turn on the sequence viewer set seq_view # align them into the "algn" object for x in cmd.get_names(): cmd.align(x, "3efw and c. A", object="algn") # color color_by_conservation aln=algn, as_putty=1