Electron & EM Density Map Methods

in FirstGlance in Jmol

Simplified Jmol Density Map Command.

The implementation in FirsGlance (described in sections I and II below) was coded before Bob Hanson implemented a simplified command syntax. Following Hanson's enhancements to Jmol, after selecting the atoms of interest, the simplest command would be:
isosurface within 3 {selected} density
This command automatically determines whether an X-ray or EM map matches the currently loaded PDB identification code, obtains the relevant box of density data, and generates the map isomesh out to the specified "within" distance in Å. The Jmol command manual contains further documentation. Therefore, the more complex commands described below, that were implemented before these enhancements were implemented, could now be simplified.

However, the Ajax calls (see below) used to check availability of a map enable FirstGlance to alert the user when a map is not available, before opening the map display browser tab. So those Ajax calls remain desirable.

I. X-Ray Diffraction Electron Density Maps.

I.A. Checking availability of the X-ray map.

Crystal X-ray diffraction electron density maps are are archived in PDB-Europe (PDBe) in ccp4 format. The presence or absence of a map is determined with an Ajax call (see openEDM() in control2.js) to this API:
https://www.ebi.ac.uk/pdbe/api/pdb/entry/files/6zx4
This returns a block of file URLs. If it includes "ccp4" then the map is available. If not, FirstGlance alerts the user with an explanation. The wwPDB began requiring the deposition of structure factors (from which maps can be generated) in 2008. Before 2008, it was optional whether to include the structure factors in a deposition.

I.B. Displaying the X-ray map.

The all-features map (2Fo-Fc) at 1 sigma is displayed by FirstGlance using a Jmol command of this syntax:
isosurface rmsd 1 within 3 {selected} eds
The difference map (Fo-Fc) at 3 sigma is displayed by FirstGlance using a Jmol command of this syntax:
isosurface rmsd 3 within 5 {selected} edsdiff

II. Electron Microscopy Density Maps.

II.A. Checking availability of the EM map.

EM maps are archived in the Electron Microscopy Data Bank (EMDB; emdbhelp can be contacted via ebi.ac.uk) in "map" format. The presence or absence of a map is determined with an Ajax call (see openEDM() in control2.js) to this API:
https://www.ebi.ac.uk/emdb/api/search/fitted_pdbs:"6nef"?fl=emdb_id,map_contour_level_value&wt=csv
When the map is present (example: 6nef), this returns
emdb_id
EMD-9357,0.06
When the map is absent (examples: 3izp, 1ucu), only the first line is returned. FirstGlance alerts the user when the map is absent.

II.B. Displaying the EM map.

Bob Hanson has built a lot of convenience into Jmol's command for displaying EM maps. The map is displayed by FirstGlance using a command of this syntax (quotes required):
isosurface cutoff 0.06 within 3 {selected} "*em/"