This script provides a way to rainbow color a protein by chain. (i.e. each chain will be colored from red to purple)
PURPOSE: The following script works on an open Molecule Window containing a protein molecule. It colors each chain of the protein from red (N-terminus) to purple (C-terminus)
INSTALLATION: Save RainbowColorChain.pl to a local directory or location accessible from the Files Explorer.
USAGE: From the DS Client: From the Files Explorer, right-click on the RainbowColorChain.pl file and select Open With | Script Window then launch the script using the Run command from the Scripting toolbar.
Conversely, add this script as a button. To make a button from a script please follow the instructions from the tutorial “Working with scripts”. (Tutorials > Quick start tutorials > Working with scripts). In short:
Open Edit | preferences
In General | Script Commands click on Add Command
Navigate to where the script is downloaded and click Open
Fill the Tooltip title with RainbowColorPerChain
Fill Tooltip text with Color proteins by Rainbow Scheme
In the Requires field choose Molecule Window
Change to General | toolbar in the Preferences pop-up
Type “Display” In the New toolbar field and click Add Toolbar
In the Commands hierarchy, expand Scripts and double-click on RainbowColorPerChain to add the script
