Point region shape n x

Welcome!

This GUI will allow you to pick training particles and make Topaz commands. Here is the general workflow:


Normalize &
downsample images
Pick training
particles, or
analyze picks
Train a
neural network
Extract particle
coordinates


Citation: Bepler, T., Morin, A., Rapp, M., Brasch, J., Shapiro, L., Noble, A.J., Berger, B. (2019). Positive-unlabeled convolutional neural networks for particle picking in cryo-electron micrographs. Nature Methods

      Topaz Image Pre-processing Command Generator

Create a command for pre-processing images (downsampling and normalization) for use in this Topaz GUI and in Topaz training.



Parameters:            Must modify Might modify Rarely modify



Input micrographs
Output folder
Number of CPUs
GPU/CPU device
Scale factor

Advanced options
Output format
Sample
Number of iterations
Alpha
Beta


Commands:


topaz preprocess /path/to/input/images/*.mrc --scale 4 --sample 1 --num-workers -1 --format mrc,png --device 0 --niters 100 --alpha 900 --beta 1 --verbose --destdir /path/to/output/preprocessed/images/



Note: Denoising micrographs before preprocessing will make particle picking even easier. Training on denoised micrographs may not work any better than the originals. You can denoise micrographs in More Tools on the right.


Pick Annotations Image Annotations × +
Open Project Save Project Update Project Settings Import Picks (as csv) Export Picks (as csv) Switch to Image Grid View Previous Image Toggle Image List Next Image Zoom In Zoom Out Select All Picks Copy Picks Paste Picks Paste Pick in Multiple Images Undo Picks Pasted in Multiple Images Delete Pick
Sorry, your browser does not support HTML5 Canvas functionality which is required for this application.
Group by 
Selected 0 of 0 images in current group, show

Settings

Project Name
Default Path
If all images in your project are saved in a single folder, set the default path to the location of this folder. The VIA application will load images from this folder by default. Note: a default path of "./" indicates that the folder containing the topaz.html application file also contains the images in this project. For example: /datasets/VOC2012/JPEGImages/ or C:\Documents\data\ (note the trailing / and \)
Search Path List
If you define multiple paths, all these folders will be searched to find images in this project. We do not recommend this approach as it is computationally expensive to search for images in multiple folders.
    Particle Pick Label
    By default, each pick in an image is labelled using the region-id. Here, you can select a more descriptive labelling of regions.
    Pick Color
    By default, each pick is drawn using a single color. Using this setting, you can assign a unique color to picks grouped according to an attribute such as Topaz score.
    Particle Pick Label Font
    Font size and font family for showing pick labels.
    Preload Buffer Size
    Images are preloaded in buffer to allow smoother navigation of next/prev images. A large buffer size may slow down the overall browser performance. To disable preloading, set buffer size to 0.
    On-image Annotation Editor
    When a single particle pick is selected, the on-image annotation editor is activated which the user may use to update annotations of this pick. By default, this on-image annotation editor is placed near the selected pick.

    File Not Found

    Filename:

    We recommend that you update the default path in project settings to the folder which contains this image.

    A temporary fix is to use browser's file selector to manually locate and add this file. We do not recommend this approach because it requires you to repeat this process every time your load this project in the VIA application.

    1. Preprocess MRCs: Use Topaz to downsample, normalize, and convert micrographs to PNG (for use in Topaz GUI) and MRC (for use with Topaz training).
      • Your particle must have a diameter (longest dimension) after downsampling of: 70 pixels or less for resnet8; 30 pixels or less for conv31; 62 pixels or less for conv63; 126 pixels or less for conv127.
      • Topaz normalization uses image statistics for all input micrographs. A Gaussian mixture model is used to effectively make the ice region of each micrograph visible, even if there is gold in the image.
    2. Pick Particles: Add images then pick particles:
      • To add images:
        • Click Add Images or Add Image Paths under 'Project' to the left
        • Note: This Topaz GUI accepts PNG, JPEG, and BMP files.
      • To pick particles:
        • Left-click on the center of particles for several micrographs.
        • To zoom in/out, either press Ctrl and scroll your mouse wheel on an image or press + or - (equal = will reset the zoom).
        • To delete a misplaced point, click the point again and press d.
        • To adjust a point's location, click the point again and either use the arrow keys on your keyboard or click-and-drag to move it.
        • Note: Topaz works best if you identify 500+ particles representing all orientations of the particle and if you pick across several images. More training particles and views means more accurate Topaz-trained picks.
        • Note: The radius of the displayed pick is 5 pixels in un-zoomed images.
    3. Train a model: Use Topaz to train a neural network model to pick your particles.
      • Several parameters are optimizable by cross-validation.
    4. Export Particles: To export particles, click Particle Picks → Export Picks in the top menu. These picks may then be used in Topaz training.
    5. Analyze Topaz Picks: Load Topaz picks by clicking Particle Picks → Import Picks.
      • Press L on your keyboard to show the particle number, then the Up key will toggle the Topaz particle scores. Zoom-in on the image with + to inspect.

      Note: It is good practice to save your particles/project regularly. Do this by clicking Particle Picks → Export Picks or Project → Save in the top menu.

      Note: Parameters are categorized by those that need to be modified, might need to be modified, are optimizable, and are rarely modified. Training parameters that are optimizable may be optimized using cross-validation.

      If you wish to work outside this GUI, follow the GitHub tutorials.


    Loading ...
        
    Topaz Version 0.2.2VIA Version 2.0.7 (modified)

    Topaz is a pipeline for particle detection in cryo-electron microscopy images using convolutional neural networks trained from positive and unlabeled examples. The original research can be found here. Topaz is released under the GPLv3 license.

    Topaz GUI uses VGG Image Annotator (VIA), which is an image annotation tool that can be used to define regions in an image and create textual descriptions of those regions. VIA is an open source project developed at the Visual Geometry Group and released under the BSD-2 clause license.

    Here is a list of some salient features of the Topaz GUI version of VIA:

    • based solely on HTML, CSS and Javascript
    • can be used off-line (full application in a single HTML file that is < 0.5MB)
    • only requires a modern web browser (tested on Chrome, Firefox, Edge, and Safari; Note: Some features look/work differently in different browsers; Chrome is recommended)
    • import/export particle picks in csv file format

    For more Topaz details, visit http://cb.csail.mit.edu/cb/topaz/.

    For more VIA details, visit http://www.robots.ox.ac.uk/~vgg/software/via/.

     

    VIA is Copyright © 2016-2019, Abhishek Dutta,Visual Geometry Group, Oxford University and VIA Contributors.

    Copyright (c) 2016-2019, Abhishek Dutta, Visual Geometry Group, Oxford University and VIA Contributors. All rights reserved.

    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

          Pick or Analyze Particles

      Pick particles for training networks or analyze Topaz picks. Follow the steps below:

      Particle picking for training

      1) To start picking, select images or add images from paths.
      2) Pick 100-1,000 particles (more is better) representing all orientations.
          • Pick across several representative images.
          • Not all particles need to be picked from each image.
      3) Export your particle picks and proceed to Topaz training.

      Save your particles and project regularly. You may load them later to continue.

      • For further help, see the Getting Started page.

      Analyzing Topaz picks

      Import your Topaz particle picks as a CSV file and review the picks.

        ◦ Press L on your keyboard to show the particle number, then the Up key will toggle the Topaz particle scores. Zoom-in on the image with + to inspect.

      Or

      • Load your micrographs and particles in .star format into Relion. Picks may be colored based on Topaz score by using the AutopickFigureOfMerit column in the .star file.

        Topaz Training Command Generator

    Create a command for training a network using particle picks.



    Parameters:            Must modify Might modify Optimizable Rarely modify



    Training images folder
    Training particles
    Output
    Particle radius
    Autoencoder
    Number of epochs
    GPU/CPU device
    Number of CPUs
    CNN model
    Method
    Num particles/image
    K-fold

    Advanced options
    Fold
    Image extension
    Units
    Dropout
    Batch norm
    Unit scaling
    Scaled num of units
    L2
    Learning rate
    Minibatch size
    Minibatch balance
    Epoch size
    Test batch size


    Command:


    topaz train --train-images /path/to/preprocessed/images/ --train-targets /path/to/training_particles.csv --k-fold 5 --fold 0 --radius 3 --model resnet8 --image-ext .mrc --units 32 --dropout 0.0 --bn on --unit-scaling 2 --ngf 32 --method GE-binomial --autoencoder 0 --num-particles 300 --l2 0 --learning-rate 0.0002 --minibatch-size 256 --minibatch-balance 0.0625 --epoch-size 5000 --num-epochs 10 --num-workers -1 --test-batch-size 1 --device 0 --save-prefix /output/path/model --output /output/path/results.txt



       Topaz Picks Extraction Command Generator

    Create commands for extracting and converting particle coordinates.



    Parameters:            Must modify Might modify Rarely modify



    Input micrographs
    Model
    Output filenames
    Particle radius
    Upscale picks
    Number of CPUs
    GPU/CPU device

    Advanced options
    Threshold
    Batch size
    Minimum radius
    Maximum radius
    Step radius


    Commands:


    topaz extract /path/to/preprocessed/images/*.mrc --model /path/to/model_epoch##.sav --radius 8 --threshold -6 --up-scale 1 --batch-size 1 --min-radius 5 --max-radius 100 --step-radius 5 --num-workers -1 --device 0 --output /path/to/extracted/particles.txt

    topaz convert /path/to/extracted/particles.txt --verbose 1 --output /path/to/extracted/particles.star

    topaz convert /path/to/extracted/particles.txt --verbose 1 --output /path/to/extracted/particles.csv



       More Tools



    Denoise Micrographs

    Create a command for denoising micrographs using an implementation of Noise2Noise.

    Parameters:            Must modify Might modify Rarely modify



    Input micrographs
    Output folder
    Model
    GPU/CPU device
    Format
    Bin micrographs

    Advanced options
    Patch size
    Patch padding


    Command:


    topaz denoise /path/to/input/images/*.mrc --model L2 --device 0 --format mrc --bin 1 --patch-size 1536 --patch-padding 384 --normalize --output /path/to/output/folder

    Denoise Particle Stack

    Create a command for denoising a particle stack using an implementation of Noise2Noise.

    Parameters:            Must modify Might modify Rarely modify



    Input stack
    Output stack
    Model
    GPU/CPU device
    Format
    Bin Stack


    Command:


    topaz denoise /path/to/particle/stack.mrcs --model L2 --device 0 --format mrc --bin 1 --stack --normalize --output /path/to/denoised/stack.mrcs

    Convert | Threshold Picks

    Create a command for converting between Topaz GUI CSV files, STAR files, or Topaz txt files.

    Parameters:            Must modify Might modify Rarely modify



    Input file
    Output file
    Threshold
    Upscale picks
    Downscale picks

    Specific filetype options
    Voltage
    Detector pixelsize
    Magnification
    Amplitude contrast
    Box size
    Image extension


    Command:


    topaz convert /path/to/input/coordinate/file.[csv|star|txt] --threshold -9999 --up-scale 1 --down-scale 1 --voltage -1 --detector-pixel-size -1 --magnification -1 --amplitude-contrast -1 --boxsize 0 --image-ext .mrc --verbose 1 --output /path/to/output/coordinate/file.[csv|star|txt]

    Extract Particle Stack

    Create a command for extracting a particle stack from micrographs using a Topaz .txt coordinate file.

    Parameters:            Must modify Might modify



    Input picks
    Input micrographs
    Output stack
    Boxsize
    Threshold
    Image extension
    Resize particles


    Command:


    topaz particle_stack /path/to/Topaz/coordinate/file.txt --image-root /path/to/full/micrographs/ --size 192 --threshold -9999 --resize -1 --image-ext .mrc --output /path/to/output/particles.mrcs