Skip to content
Snippets Groups Projects
Select Git revision
  • 2f3ea39b40a514c3eb36edd3ab8a08a859401879
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

export_input.cc

Blame
  • load_and_display.py 540 B
    # Load chain A of SDH
    ent=io.LoadPDB('sdh.pdb', restrict_chains='A')
    
    # create graphics object
    go=gfx.Entity('SDH', ent)
    # set rendermode of full graphical object to interpolated spline
    go.SetRenderMode(gfx.SLINE)
    # select sidechains (including bond to C-alpha and N in case of proline)
    sidechains=ent.Select('aname!=CA,C,N,O', mol.EXCLUSIVE_BONDS)
    # set rendering of sidechains to simple
    go.SetRenderMode(gfx.SIMPLE, sidechains)
    
    # add object to scene
    scene.Add(go)
    
    # center the scene on the geometric center of the SDH
    scene.CenterOn(go)