wiki:docs_ngl

Version 5 (modified by ehb, 2 years ago) (diff)

--

NGL molecular viewer

  • requires genappalpha rev XXXX
  • NGL provides a WebGL based molecular viewer
  • examples
    • module json (note height & width must be specified, else the viewer will have no size):
           ...
           ,{
                  "role"            : "output"
                  ,"id"              : "nglplot"
                  ,"label"           : "Example NGL"
                  ,"type"            : "ngl"
                  ,"height"          : "600px"
                  ,"width"           : "400px"
            }
            ...
      
    • executable JSON output
      {
          "loadname"    : "myfile.pdb"
          ,"loadparams" : {
                             "ext" : "pdb"
                             ,"name" : "a name"
                             ,"asTrajectory" : true
                          }
          ,"representation" : "cartoon"
      
      }
      
  • notes:
    • Required:
    • Optional:
      • "loadparams" is passed as the 2nd argument to stage.loadFile()
        • "loadparams" : "ext" is an optional file extension to determine file type (if not specified in "loadname").
        • "loadparams" : "name" is an optional name for the data
      • "representation" is an optional startup representation
        • default "cartoon"
        • possibilities:
              backbone
              ball+stick
              base
              cartoon
              contact
              crossing
              helixorient
              hyperball
              label
              licorice
              line
              point
              ribbon
              rocket
              rope
              spacefill
              surface
              trace
              tube
          
  • stage

Attachments (1)

Download all attachments as: .zip