Load

From Jmol
Jump to navigation Jump to search

Loading structures and data into Jmol

Loading parts of a model file

The use of load with the filter option allows that Jmol will only read some atoms from the file. This is useful e.g. to avoid the solvent molecules, to load a single chain, or to accelerate manipulation of large models (trace and cartoon may be rendered with just the Calpha atoms available)

See documentation at 1 and 2

Load/Filter has examples for:

  • Loading part of the model using a filter
  • Loading only some models from multimodel files

Using the load() function

Instead of loading a file with immediate display (the load command), data in a file can be put into a Jmol variable (in memory) in order to optionally process it before display, using the load() function.

Simplest syntax (no processing):

d = load("myStructure.pdb");
load var d;
load "@d"; // synonym of the above line (quotes are essential)
reset d; // clears the variable to release the memory used (after having displayed it).
d = load("$caffeine");
load var d;
zap;
load "@d";

Contributors

AngelHerraez