Job: Topaz Extract
Topaz Extract job available via wrapper in CryoSPARC.
Once the Topaz Train job has been used to train a Topaz model it can be used to pick particles from micrographs using the Topaz Extract job. This job has the following inputs and outputs:
Inputs
Topaz Model
Micrographs
Outputs
Particle Picks
Micrographs
Common parameters to change
Absolute path of directory containing preprocessed directory - path to place the downsampled micrographs and particle files. If left blank, a folder will be created in the job directory titled "preprocessed".
Downsampling mode - downsampling should be done to produce a target pixel size of 4-8Å/px.
Automatic - downsample factor is chosen such that the target pixel size is 8Å/px and the particle will fit within the receptive field for the specified model.
Estimated particle diameter - value in Å representing the diameter of the target particle
Manual - specify the downsampling factor manually; aiming for a pixel size of 4-8Å.
Radius of extracted regions - specifies how close predicted particles can be to each other when coordinates are identified from the pixel-level probabilities via peak finding. This radius should be close to the actual size of your particle, because it prevents multiple high scoring pixels within a single particle being called as centers of different particles by the peak finding algorithm.
If the "Auto" downsampling mode was selected, specify the minimum distance between particle centers in units of particle diameters.
If the "Manual" downsampling mode was selected, specify the minimum distance between particle centers in number of downsampled pixels
Parameters
Path to Topaz Executable
The absolute path to the Topaz executable script.
Select Pre-trained
--modelSelect pre-trained model to use for extraction. If "None" is selected, will use input model.
CPU only (sets
--deviceto-1)Specify whether to use GPU or CPU.
Absolute path of directory containing preprocessed directory
Path to directory containing preprocessed micrographs for cross validation.
Downsampling Mode
Auto / Estimated Particle Diameter (Å)
A suitable downsample factor is chosen such that the target pixel size is 8Å/px and the particle will fit within the receptive field for the specified model.
Manual / Downsampling Factor
--down-scaleor--scaleThe factor by which to downsample micrographs by.
Number of Iterations
--nitersNumber of iterations to use for model fit. Only required when using provided pre-trained model.
Score Threshold
--thresholdThreshold particles by score before preprocessing. Only required when using provided pre-trained model.
Number of Parallel Threads
--num-workersNumber of threads to distribute processing over. This parameter decreases the preprocessing time by a factor approximately equal to the input value. It is recommended to set this value to at least 4 as the preprocessing time is often a bottleneck in the time performance of the job. Values less than 2 will default to a single thread.
Radius of Extracted Regions
--radiusIf the "Auto" downsampling mode was selected, specify the minimum distance between particle centers in units of particle diameters.
If the "Manual" downsampling mode was selected, specify the minimum distance between particle centers in number of downsampled pixels.
Extraction Threshold
--thresholdLog likelihood at which to stop extraction.
Particle Threshold
-tThreshold at which to filter particle quality.
The Topaz Extract job features various parameters but the most notable parameter is the particle threshold parameter. This parameter determines the minimum quality threshold at which to accept particle picks. If the results of a Topaz Extract job features too many particles, the issue may be solved simply by increasing this parameter. However, selecting an improved threshold can be conveniently done using the Inspect Particle Picks job in cryoSPARC as detailed in the next section.
This job also features the number of parallel threads parameter. Like in the Topaz Train and Cross Validation jobs, this parameter decreases the preprocessing time by a factor approximately equal to the input value. It is recommended to set this value to at least 4 as the preprocessing time is often a bottleneck in time performance of the job. Values less than 2 will default to single thread.
Interpreting Training Results from Topaz Extract
Topaz assigns a log-likelihood score from the model to each particle pick based on the surrounding pixel characteristics. These Topaz values can be interacted with in one of two ways:
Particle Threshold parameter in Topaz Extract Topaz Extract includes a "Particle Threshold" parameter (default: 0), which can be used to threshold particles at the time of picking. Filtering of particles with the log-likelihood threshold is demonstrated in Figure 4 of the original Topaz paper, where reconstruction resolution and 2D class averages are compared across decreasing thresholds.
Normalized Scores in the NCC and Power Fields During Topaz Extract, CryoSPARC normalizes and scales the predicted probability scores from Topaz, storing them in the NCC and Power score fields. This allows particles to be curated downstream using a consistent value/ranking.The particle picks from the
Topaz Extractjob can be observed and have a threshold applied using the Inspect Particle Picks job. This job interacts with particle picks fromTopaz Extractdifferently in that it enable a user to apply a threshold based on Topaz model performance rather than power score. To do so, vary the power score threshold in theInspect Particle Picksjob. In the image below, the inferred picks have a lower bound threshold of 15 and an upper bound threshold of 48 applied. This number is a model score applied by Topaz indicating how confident the model is in a particle pick.

All particles outputted from Topaz Extract must be processed using the Extract from Micrographs job in CryoSPARC. This updates the CTF information within the particle picks and makes the picks compatible with other CryoSPARC jobs such as Ab-Initio Reconstruction.
Last updated