CryoSPARC Guide
  • About CryoSPARC
  • Current Version
  • Licensing
    • Non-commercial license agreement
  • Setup, Configuration and Management
    • CryoSPARC Architecture and System Requirements
    • CryoSPARC Installation Prerequisites
    • How to Download, Install and Configure
      • Obtaining A License ID
      • Downloading and Installing CryoSPARC
      • CryoSPARC Cluster Integration Script Examples
      • Accessing the CryoSPARC User Interface
    • Deploying CryoSPARC on AWS
      • Performance Benchmarks
    • Using CryoSPARC with Cluster Management Software
    • Software Updates and Patches
    • Management and Monitoring
      • Environment variables
      • (Optional) Hosting CryoSPARC Through a Reverse Proxy
      • cryosparcm reference
      • cryosparcm cli reference
      • cryosparcw reference
    • Software System Guides
      • Guide: Updating to CryoSPARC v4
      • Guide: Installation Testing with cryosparcm test
      • Guide: Verify CryoSPARC Installation with the Extensive Validation Job (v4.3+)
      • Guide: Verify CryoSPARC Installation with the Extensive Workflow (≤v4.2)
      • Guide: Performance Benchmarking (v4.3+)
      • Guide: Download Error Reports
      • Guide: Maintenance Mode and Configurable User Facing Messages
      • Guide: User Management
      • Guide: Multi-user Unix Permissions and Data Access Control
      • Guide: Lane Assignments and Restrictions
      • Guide: Queuing Directly to a GPU
      • Guide: Priority Job Queuing
      • Guide: Configuring Custom Variables for Cluster Job Submission Scripts
      • Guide: SSD Particle Caching in CryoSPARC
      • Guide: Data Management in CryoSPARC (v4.0+)
      • Guide: Data Cleanup (v4.3+)
      • Guide: Reduce Database Size (v4.3+)
      • Guide: Data Management in CryoSPARC (≤v3.3)
      • Guide: CryoSPARC Live Session Data Management
      • Guide: Manipulating .cs Files Created By CryoSPARC
      • Guide: Migrating your CryoSPARC Instance
      • Guide: EMDB-friendly XML file for FSC plots
    • Troubleshooting
  • Application Guide (v4.0+)
    • A Tour of the CryoSPARC Interface
    • Browsing the CryoSPARC Instance
    • Projects, Workspaces and Live Sessions
    • Jobs
    • Job Views: Cards, Tree, and Table
    • Creating and Running Jobs
    • Low Level Results Interface
    • Filters and Sorting
    • View Options
    • Tags
    • Flat vs Hierarchical Navigation
    • File Browser
    • Blueprints
    • Workflows
    • Inspecting Data
    • Managing Jobs
    • Interactive Jobs
    • Upload Local Files
    • Managing Data
    • Downloading and Exporting Data
    • Instance Management
    • Admin Panel
  • Cryo-EM Foundations
    • Image Formation
      • Contrast in Cryo-EM
      • Waves as Vectors
      • Aliasing
  • Expectation Maximization in Cryo-EM
  • Processing Data in cryoSPARC
    • Get Started with CryoSPARC: Introductory Tutorial (v4.0+)
    • Tutorial Videos
    • All Job Types in CryoSPARC
      • Import
        • Job: Import Movies
        • Job: Import Micrographs
        • Job: Import Particle Stack
        • Job: Import 3D Volumes
        • Job: Import Templates
        • Job: Import Result Group
        • Job: Import Beam Shift
      • Motion Correction
        • Job: Patch Motion Correction
        • Job: Full-Frame Motion Correction
        • Job: Local Motion Correction
        • Job: MotionCor2 (Wrapper) (BETA)
        • Job: Reference Based Motion Correction (BETA)
      • CTF Estimation
        • Job: Patch CTF Estimation
        • Job: Patch CTF Extraction
        • Job: CTFFIND4 (Wrapper)
        • Job: Gctf (Wrapper) (Legacy)
      • Exposure Curation
        • Job: Micrograph Denoiser (BETA)
        • Job: Micrograph Junk Detector (BETA)
        • Interactive Job: Manually Curate Exposures
      • Particle Picking
        • Interactive Job: Manual Picker
        • Job: Blob Picker
        • Job: Template Picker
        • Job: Filament Tracer
        • Job: Blob Picker Tuner
        • Interactive Job: Inspect Particle Picks
        • Job: Create Templates
      • Extraction
        • Job: Extract from Micrographs
        • Job: Downsample Particles
        • Job: Restack Particles
      • Deep Picking
        • Guideline for Supervised Particle Picking using Deep Learning Models
        • Deep Network Particle Picker
          • T20S Proteasome: Deep Particle Picking Tutorial
          • Job: Deep Picker Train and Job: Deep Picker Inference
        • Topaz (Bepler, et al)
          • T20S Proteasome: Topaz Particle Picking Tutorial
          • T20S Proteasome: Topaz Micrograph Denoising Tutorial
          • Job: Topaz Train and Job: Topaz Cross Validation
          • Job: Topaz Extract
          • Job: Topaz Denoise
      • Particle Curation
        • Job: 2D Classification
        • Interactive Job: Select 2D Classes
        • Job: Reference Based Auto Select 2D (BETA)
        • Job: Reconstruct 2D Classes
        • Job: Rebalance 2D Classes
        • Job: Class Probability Filter (Legacy)
        • Job: Rebalance Orientations
        • Job: Subset Particles by Statistic
      • 3D Reconstruction
        • Job: Ab-Initio Reconstruction
      • 3D Refinement
        • Job: Homogeneous Refinement
        • Job: Heterogeneous Refinement
        • Job: Non-Uniform Refinement
        • Job: Homogeneous Reconstruction Only
        • Job: Heterogeneous Reconstruction Only
        • Job: Homogeneous Refinement (Legacy)
        • Job: Non-uniform Refinement (Legacy)
      • CTF Refinement
        • Job: Global CTF Refinement
        • Job: Local CTF Refinement
        • Job: Exposure Group Utilities
      • Conformational Variability
        • Job: 3D Variability
        • Job: 3D Variability Display
        • Job: 3D Classification
        • Job: Regroup 3D Classes
        • Job: Reference Based Auto Select 3D (BETA)
        • Job: 3D Flexible Refinement (3DFlex) (BETA)
      • Postprocessing
        • Job: Sharpening Tools
        • Job: DeepEMhancer (Wrapper)
        • Job: Validation (FSC)
        • Job: Local Resolution Estimation
        • Job: Local Filtering
        • Job: ResLog Analysis
        • Job: ThreeDFSC (Wrapper) (Legacy)
      • Local Refinement
        • Job: Local Refinement
        • Job: Particle Subtraction
        • Job: Local Refinement (Legacy)
      • Helical Reconstruction
        • Helical symmetry in CryoSPARC
        • Job: Helical Refinement
        • Job: Symmetry search utility
        • Job: Average Power Spectra
      • Utilities
        • Job: Exposure Sets Tool
        • Job: Exposure Tools
        • Job: Generate Micrograph Thumbnails
        • Job: Cache Particles on SSD
        • Job: Check for Corrupt Particles
        • Job: Particle Sets Tool
        • Job: Reassign Particles to Micrographs
        • Job: Remove Duplicate Particles
        • Job: Symmetry Expansion
        • Job: Volume Tools
        • Job: Volume Alignment Tools
        • Job: Align 3D maps
        • Job: Split Volumes Group
        • Job: Orientation Diagnostics
      • Simulations
        • Job: Simulate Data (GPU)
        • Job: Simulate Data (Legacy)
    • CryoSPARC Tools
    • Data Processing Tutorials
      • Case study: End-to-end processing of a ligand-bound GPCR (EMPIAR-10853)
      • Case Study: DkTx-bound TRPV1 (EMPIAR-10059)
      • Case Study: Pseudosymmetry in TRPV5 and Calmodulin (EMPIAR-10256)
      • Case Study: End-to-end processing of an inactive GPCR (EMPIAR-10668)
      • Case Study: End-to-end processing of encapsulated ferritin (EMPIAR-10716)
      • Case Study: Exploratory data processing by Oliver Clarke
      • Tutorial: Tips for Membrane Protein Structures
      • Tutorial: Common CryoSPARC Plots
      • Tutorial: Negative Stain Data
      • Tutorial: Phase Plate Data
      • Tutorial: EER File Support
      • Tutorial: EPU AFIS Beam Shift Import
      • Tutorial: Patch Motion and Patch CTF
      • Tutorial: Float16 Support
      • Tutorial: Particle Picking Calibration
      • Tutorial: Blob Picker Tuner
      • Tutorial: Helical Processing using EMPIAR-10031 (MAVS)
      • Tutorial: Maximum Box Sizes for Refinement
      • Tutorial: CTF Refinement
      • Tutorial: Ewald Sphere Correction
      • Tutorial: Symmetry Relaxation
      • Tutorial: Orientation Diagnostics
      • Tutorial: BILD files in CryoSPARC v4.4+
      • Tutorial: Mask Creation
      • Case Study: Yeast U4/U6.U5 tri-snRNP
      • Tutorial: 3D Classification
      • Tutorial: 3D Variability Analysis (Part One)
      • Tutorial: 3D Variability Analysis (Part Two)
      • Tutorial: 3D Flexible Refinement
        • Installing 3DFlex Dependencies (v4.1–v4.3)
      • Tutorial: 3D Flex Mesh Preparation
    • Webinar Recordings
  • Real-time processing in cryoSPARC Live
    • About CryoSPARC Live
    • Prerequisites and Compute Resources Setup
    • How to Access cryoSPARC Live
    • UI Overview
    • New Live Session: Start to Finish Guide
    • CryoSPARC Live Tutorial Videos
    • Live Jobs and Session-Level Functions
    • Performance Metrics
    • Managing a CryoSPARC Live Session from the CLI
    • FAQs and Troubleshooting
  • Guides for v3
    • v3 User Interface Guide
      • Dashboard
      • Project and Workspace Management
      • Create and Build Jobs
      • Queue Job, Inspect Job and Other Job Actions
      • View and Download Results
      • Job Relationships
      • Resource Manager
      • User Management
    • Tutorial: Job Builder
    • Get Started with CryoSPARC: Introductory Tutorial (v3)
    • Tutorial: Manually Curate Exposures (v3)
  • Resources
    • Questions and Support
Powered by GitBook
On this page
  • At a Glance
  • The Contrast Transfer Function
  • The CTF and the PSF
  • The CTF in Practice
  • Sample Flatness
  • The effects of the CTF illustrated
  • Useful Resources
  • References
  • CTF Estimation Jobs
  • CTF Estimation Tutorials
  1. Processing Data in cryoSPARC
  2. All Job Types in CryoSPARC

CTF Estimation

PreviousJob: Reference Based Motion Correction (BETA)NextJob: Patch CTF Estimation

Last updated 5 months ago

At a Glance

The Contrast Transfer Function (CTF) models the effect of defocus and microscope aberrations on single particle images. These effects must be corrected before the images can be used to reconstruct a 3D Volume.

This article contains a broad overview of what the contrast transfer function is and where it comes from. Advanced pages provide more detail on waves, contrast, and aliasing. These topics are important both for a deeper theoretical understanding of the technique and also for practical considerations, such as the choice of box size during extraction. Finally, there is a list of useful external resources for interested readers at the end of this page.

Developing even an incomplete understanding of the sources of contrast in cryo-EM is a significant undertaking — we intend this section to serve as a reference over the course of one’s cryo-EM education rather than a prerequisite to performing one’s first CTF job.

The Contrast Transfer Function

The CTF and the PSF

When modeling image aberrations, it may be most intuitive to consider the question, “what does the image of a single point look like when imaged by this system”. This concept is known as the Point Spread Function (often abbreviated PSF). In theory, one might expect that an image of a single point would be a simple projection of that point into a 2D image:

To model what would happen for an arbitrary object shape, we could break apart the object into a set of many individual points, and apply the PSF at each point to determine the resulting image.

If the object were split into infinitely many points, applying the point spread function to each point would produce an identical image. This operation is called a convolution, and can be computationally expensive. However, a mathematically useful property of convolution is that it is equivalent to a simple multiplication when working in Fourier space. Thus, to simplify convolution, we can:

  1. take the Fourier transform of our object,

  2. multiply it by the Fourier transform of the point spread function,

  3. and then perform an inverse Fourier transform on the result.

This process produces the image we would expect to see in the microscope.

The Fourier transform of the point spread function is so useful and commonly used that it has its own name: the Contrast Transfer Function (CTF). In addition to its usefulness in convolving the object and the point spread function, the contrast transfer function is also much easier to estimate directly from image data than the point spread function.

The CTF in Practice

The CTF has several practical implications on the processing of cryo-EM data.

Particle visibility

For example, consider the simulated images above. The image collected with no defocus is faintly visible without noise, but becomes almost impossible to see with even modest amounts of noise. Compare this to the image simulated with significant (2 µm) defocus. This level of defocus introduces contrast at low frequencies, making the particle clearly visible even when noise is present. However, the image is more obviously corrupted by oscillations in contrast at high frequencies (visible in the simulated image as black and white rings).

Most, but not all, of the image corruption can be modeled and recovered computationally. Thus, micrographs are typically collected with the least defocus for which particle images can still be reliably picked against the noisy background.

Zero crossings

As the contrast transfer function oscillates between -1 and 1, it crosses 0 several times. Frequencies for which the contrast transfer function is 0 have no contrast — they are absolutely invisible in the image.

If all images were collected at the same defocus, all of the images would have 0 contrast at the same spatial frequencies. This would result in a specific band of frequencies having little to no contrast, making the map useless. Data is therefore collected over a range of defocus values such that, taken together, each frequency is represented in a sufficient number of particle images to be properly accounted for.

Signal delocalization

Finally, collecting images with defocus delocalizes signal away from its true position. In the simulated comparison above, note that the high-frequency features (loops in the fabs, helical pitch, etc.) are clearly visible in the left images, where no CTF is applied. Note, of course, that images like this are impossible to collect, since with no defocus, they would not have any contrast. On the right, these same high-frequency features have spread away from their true positions and now overlap, making the image impossible to directly interpret.

This effect is more significant at higher frequencies and at higher defocus values. Particle images which were collected at high defocus and which refine to high resolutions must therefore be extracted with a larger box size to capture information moved away from the particle center.

Sample Flatness

The effects of the CTF illustrated

It can be difficult to understand the major practical effects of the contrast transfer function in abstract. We therefore present a useful test object here, inspired by examples first presented in Downing and Glaeser (2008).

In the following figures, we mathematically apply the contrast transfer function to a test object. This test object is a wedge with horizontal stripes. The wedge gets narrower, and the stripes closer together, as we move from left to right. In this way, the wedge comprises a smooth range of (vertical) spatial frequencies, starting with the low frequencies at the left and finishing with the high frequencies at the right.

In these simulations, each pixel represents 1 Å. The wedge is therefore approximately 20 nm tall at its tallest side, and contains frequencies corresponding to the resolutions from approximately 26 Å to 6 Å. Additionally, we apply the contrast transfer function only in the vertical direction to prevent information from one spatial frequency spilling into adjacent columns.

At this defocus, the CTF has a negative value for low frequencies. This means that low frequencies (e.g., the left side of the wedge) have negative contrast.

Approximately halfway along the wedge, the CTF crosses zero (dashed vertical lines indicate zero-crossings). The frequencies at and near this point have no contrast — they are the same flat grey as the background. The zero-crossings of the CTF are why it is important to collect data at a range of defocus values. If all of these zero crossings were at the same point, that frequency would never have any contrast, and the images would therefore be incapable of producing a 3D volume.

After the first zero crossing, the CTF has a positive value. This means the wedge is again visible against the grey background, but black has become white and vice versa. This is another effect of the CTF that must be corrected for. In reality, the stripes have the same “density” all the way along the wedge. This flipping is purely an effect of the CTF.

The image above shows the CTF at only a single defocus (-1.5 µm). In the below animation, the defocus varies smoothly from 0.0 to 3.0 µm. The top pane shows the frequency wedge image while the bottom pane shows the CTF. Both are at the same defocus, and the frequencies are aligned in each.

Note first that as defocus increases, so does the contrast at the low frequencies (left end of the wedge). At the beginning of the animation, when the defocus is 0, the left side of the wedge is nearly invisible. As defocus increases, so does the contrast of the low-frequency, left-hand side of the wedge.

Next, observe that the zero crossings move up and down along the wedge as the defocus changes, since the contrast transfer function crosses zero at different frequencies depending on the defocus. Zero crossings are indicated in the bottom pane with dashed lines.

Finally, watch the high-frequency (right-hand) tail of the wedge as defocus changes. The information from this high-frequency region is displaced by a significant fraction of the total size of the object at high defocus!

Useful Resources

References

  1. Downing, K. H. & Glaeser, R. M. Restoration of weak phase-contrast images recorded with a high degree of defocus: The “twin image” problem associated with CTF correction. Ultramicroscopy 108, 921–928 (2008).

CTF Estimation Jobs

CTF Estimation Tutorials

However, various imperfections and complications in electron microscopes means this is not the case. The deviations of the true image from this “ideal” projected point are collectively called aberrations. The largest aberration is due to the fact that images are collected out of focus (also known as “with defocus”) to improve contrast (see ). The sum total of these aberrations result, generally for cryo-EM, in a point spread function that consists of oscillating bands of dark and light rings around a single point:

Images collected at or near focus will have very little contrast at low resolutions because protein and buffer scatter electrons with approximately the same intensity (see for more details on this topic). This makes them difficult to pick against a noisy background.

Cryo-EM samples are never perfectly "flat". Particles tend to concentrate near the air-water interfaces prior to the sample being frozen, and the ice surface itself is often nonplanar. Recalling that defocus affects the contrast transfer function, this means that a single image can contain particles with different defoci and therefore different contrast transfer functions. CryoSPARC provides a patch-based contrast transfer function estimation method in the job type which examines many different areas in the micrograph to compute a "defocus landscape", to combat this issue. Patch CTF requires no prior information about particle locations within the micrograph, and can be used immediately after motion correction. It can even work on tilted samples without knowing about the tilt beforehand.

For an approachable discussion of the contrast transfer function, we recommend Grant Jensen’s lecture on the topic, available .

Readers interested in the math behind phase contrast and the contrast transfer function may find the interesting. also provide interesting discussion of the topic. Finally, provides a thorough and detailed reference for motivated readers.

To check whether CTF aliasing occurs for a given set of experimental parameters in 2D, consider using , written by Takanori Nakane.

from the Jiang lab simulates a CTF from a variety of user-selected parameters. It can be a helpful way to build intuition about the effects of various microscope parameters on the final CTF.

Another useful tool for developing intuition about the CTF’s effect on images is available from .

Contrast in Cryo-EM
Contrast in Cryo-EM
Patch CTF Estimation
on YouTube
notes from Fred Sigworth and Hemant Tagare
Marin van Heel’s notes
Transmission Electron Microscopy by Kohl and Reimer
this online script
This tool
Johannes Elferich
Job: Patch CTF Estimation
Job: Patch CTF Extraction
Job: CTFFIND4 (Wrapper)
Job: Gctf (Wrapper) (Legacy)
Tutorial: Patch Motion and Patch CTF
Jump to the CTF Job Types
On the left, the "object" is a blue dot. On the right, the "image" is a red dot. An arrow labeled "Point Spread Function" points between the two.
The red dot at the right now has oscillating rings of red and white around it.
At the top, a continuous object on the left has an image with rings around it on the right. At the bottom, the object is split into points, each of which has rings around them in the image.
This image is a flowchart. At the left, we see the structura logo (labeled "object") and the PSF. Both are Fourier transformed. These Fourier transforms are multiplied together, then the inverse Fourier transform is taken. This results in the final image: the Structura logo with rings around each part.
A grid of images. The left images have zero defocus, the right images have -2 micron defocus. The top row shows a plot of the CTF at these defoci. The middle images show simulated particles with these defoci. The bottom images show simulated particles plus noise. The images with greater defocus are much easier to see, especially with the added noise.
A plot of the CTF is shown. Three frequencies are highlighted with points. Below the plot, examples of a wave with this frequency and the result of applying the CTF to this wave are shown.
The same particle image is simulated with 0 and -1.5 micron defocus. A zoomed region of the particle shows that the defocused particle has signal in a region that is empty in the no-defocus image.
Top: a wedge with alternating black and white stripes. No CTF is applied to this wedge. On the left hand side, the stripes are wide, so their spatial frequency is low. On the right, the stripes are small, so the spatial frequency is high. Middle: the same wedge with a -1.5 micron defocus. The region in the middle of the wedge is flat grey, since there is no contrast at this frequency. Signal is delocalized away from its position in the wedge with no CTF. Bottom: a graph of the CTF with zero crossings marked.
An animation of the wedge from the previous image. Defocus increases from 0 to -3 microns.