3D-e-Chem / molviewer-tsx

Visualize protein with it's natural ligand and candidates
Apache License 2.0
2 stars 1 forks source link

Show protein as either cartoon or surface #23

Open sverhoeven opened 5 years ago

sverhoeven commented 5 years ago

Now the protein is always showed in cartoon representation it would be nice to show protein as a electrostatic colored surface. This will show more easily where the ligand is close to the protein.

sverhoeven commented 5 years ago

To get surface to show in the current app use the following workaround:

  1. Open debugger
  2. Open JS and pretty print
  3. Find definePocket function and place a breakpoint
  4. Change the pocket radius slider in gui sidebar
// replace cartoon with surface
this.model.removeRepresentation(this.model.reprList[0])
this.model.addRepresentation("surface", {colorScheme:"electrostatic", surfaceType:"av", sele: "not ligand"})

Disable breakpoint