Hiding Chains from a PDB File with Mspace Applet - Param Que

User feeba8b156

01-09-2006 20:00:47

I have a parameter question. Is there a parameter to hide the protein chains?





I have a web site which uses mspace to open pdb files. as soon as the applet is loaded, i had it load the secondary structure and coloured it by chain automatically. now i want the make the Chains Invisible.





For example, in this page, you can see the protein 2a01


http://www.charmm-gui.org/pdbreader/uploaded_pdb/1157140756/2a01_java_main.php





Is it possible for me to make Chain A, B, and C invisible using a parameter instead of having the user having to click anything?

ChemAxon 909aee4527

04-09-2006 15:07:26

An easy-to-use parameter is missing for this event.


Because identifying components is hard at present, the parameters will probably be changed in the near future.





Until then as a quick solution the parameter "Visible" with a boolean value can be used, e.g. "MacroMolecule.Visible" "false" will hide all chains.


"Water.Visible", "Ion.Visible" and "Ligand.Visible" can also be used.
Code:
document.MSpaceApplet.setProperty("MacroMolecule.Visible" , "false" );






This is available as an applet patch, the mspace.jar can be downloaded from the MarvinSpace webpage, the previous mspace.jar should be replaced with it on your server.





If you allow some more hints, the following applet parameters can also be used:


Code:
<param name="popupmenu" value="true">


<param name="toolbar" value="true">





though the toolbar requires an additional jar file in the archive list: jextexp.jar