This example shows how to display the secondary structure representation of a protein instead of the basic Wire mode.
|
MarvinSpace can display the secondary structure representation of proteins and nucleic acids in the common display modes such as Wire, Trace, Tube, Ribbon and Cartoon.
The rendered secondary structure can be colored similarly to the structure itself except the CPK schema.
In this example we show the secondary structure in the default Cartoon mode, and color it by Chain type
document.MSpaceApplet.setProperty("ShowSecondaryStructure",1); document.MSpaceApplet.setProperty("SecondaryStructure.ColorType", "Chain");To hide the protein chains and the water molecules, we use
document.MSpaceApplet.setProperty("MacroMolecule.Visible" , "false" ); document.MSpaceApplet.setProperty("Water.Visible" , "false" );Of course, hiding ligands and ions is also possible by the appropriate calls
document.MSpaceApplet.setProperty("Ligand.Visible" , "false" ); document.MSpaceApplet.setProperty("Ion.Visible" , "false" );To change the draw type and color type, the following properties can be used:
document.MSpaceApplet.setProperty( "SecondaryStructure.DrawType", document.DrawType.group1[i].value ); document.MSpaceApplet.setProperty( "SecondaryStructure.ColorType", document.ColorType.group1[i].value );