Skip to content

SUSAN is a sub-tomogram averaging (StA) workflow for CryoET based on sub-stacks of images instead sub-volumes of tomograms. Such an approach substantially lowers computational complexity to speed up StA processing.

License

KudryashevLab/SUSAN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SUbStack ANalysis (SUSAN): High performance Subtomogram Averaging

(Distribution version)

Last time synchronized with upstream repository on 2023-Jan-19.

Contents

Description

SUSAN is a low-level/mid-level framework for fast Subtomogram Averaging (StA) for CryoEM. It uses susbtacks instead of subtomograms that are cropped on-the-fly from the aligned stacks to reduce the computational complexity and to increase the overall performace of the StA pipeline.

SUSAN was designed to be modular, flexible and fast. It is conformed by two layers:

  • Low-level layer: Set of executables that perform the demanding computations. They were written in C++ using a minimal set of dependencies: Eigen, as a header-only mathemetical engine, CUDA for GPU acceleration, and PThreads for lightweight multi-threading. Optionally, they can be built with MPI support to run in multi-node environments.
  • Mid-level layer: Set of wrappers to the previous layer that simplify its use and provides a set of non time-critical operations. It is used to create the workflows or pipelines as scripts with wrappers for Matlab and for Python. The Matlab one was designed to complement DYNAMO, while the Python one is provided to enable integration to other pipelines based on this language.

About

This is a fork of the SUSAN original repository which was developed by Ricardo Miguel Sanchez Loyaza in the Independent Research Group (Sofja Kovaleskaja) of Dr. Misha Kudryashev at the Department of Structural Biology at MPIBP (Max Planck Institute of Biophysics) in Frankfurt am Main, Germany. Currently, he is an ARISE fellow at the Kreshuk group at the European Molecular Biology Laboratory (EMBL) in Heidelberg, Germany.

This fork repository was created for SUSAN usage support by members of the established in August 2021 In situ Structural Biology Group of Dr. Misha Kudryashev at the MDCMM (Max Delbrück Center of Molecular Medicine) in Berlin, Germany.

SUSAN is an Open Source project (AGPLv3.0)

Repository structure

Repository branches are:

  • main - updated with upstream repository version;
  • main_last- the version before the latest update with upstream repository had been made;
  • other branches - development, synchronization with upstream repository, etc.

(see the latest update date in the top of this page for the current branch)

Building and setup instructions

Dependencies

  • CUDA.
  • Eigen: As this is needed at compilation time only, there is no need to install it in the system. If not provided by the building environment, it can be installed locally following this instructions.
  • gcc.
  • cmake.
  • git.

Optional

  • OpenMPI, or equivalent, for multi-node support
  • Matlab

Initial setup and compilation

We assume that SUSAN will be installed in the LOCAL_SUSAN_PATH folder (LOCAL_SUSAN_PATH can be /home/user/Software/, for example)

  1. Install the desired dependencies.
  2. Clone SUSAN to LOCAL_SUSAN_PATH:
    cd LOCAL_SUSAN_PATH
    git clone https://github.com/KudryashevLab/SUSAN.git
    
    • (Optional) Install Eigen:
      cd LOCAL_SUSAN_PATH/SUSAN/extern
      git clone https://gitlab.com/libeigen/eigen.git eigen
      cd eigen
      mkdir build
      cd build
      cmake ../ -DCMAKE_INSTALL_PREFIX=../../eigen_lib
      make install
      
  3. Compile SUSAN:
    cd LOCAL_SUSAN_PATH/SUSAN
    mkdir bin
    cd bin
    cmake ../
    make -j
    
    Note: The cmake procedure detects the availabilty of OpenMPI and Matlab and compiles their functionalities accordingly.
  • (Optional) To be able to install SUSAN as a Python package:
    make prepare_python
    
    This will install the compiled binaries in the bin folder of the Python package.

Python setup

Dependencies

Besides the standard libraries, the SUSAN module for Python has only two dependencies: NumPy and Numba. Install them if needed:

  • Using conda (or equivalent):
    conda install numpy numba
    
  • Using pip
    pip install numpy numba
    

Option 1: Using susan without installation

LOCAL_SUSAN_PATH must be added to path first and then the susan module can be imported. On the Python command line, or on a Python script:

import sys
sys.path.insert(1,'LOCAL_SUSAN_PATH')
import susan

Option 2: Install susan in the current Python environment

After executing the optional steps for the Python module, it can be installed using pip and the provided setup.py file. In the LOCAL_SUSAN_PATH execute:

pip install .

After this step, the module susan should be available to be imported.

Matlab setup

LOCAL_SUSAN_PATH must be added to path. On the Matlab command line, or on a Matlab script:

addpath LOCAL_SUSAN_PATH/SUSAN

Installing SUSAN in a conda environment (for Python)

SUSAN can be built and installed inside a conda environment:

  • (Optional) Create a new conda environment:
    conda create -n susan_env
    
  1. Activate the working environment, for this example we will use susan_env
    conda activate susan_env
    
  2. Install the packages needed for building SUSAN
    conda install -c conda-forge git cmake make cxx-compiler eigen cudatoolkit-dev
    
  • (Optional) Install openmpi:
    conda install openmpi
    
  1. Clone SUSAN to LOCAL_SUSAN_PATH (For example, LOCAL_SUSAN_PATH can be ~/Software/), compile it and prepare it for the Python installation:
    cd LOCAL_SUSAN_PATH
    git clone https://github.com/KudryashevLab/SUSAN.git
    mkdir SUSAN/bin
    cd SUSAN/bin
    cmake ../
    make -j
    make prepare_python
    cd ..
    
  2. Install the packages in the current environment
    pip install .
    

After these step the module susan should be available.

Tutorial

A tutorial is available for Python and Matlab for the mixedCTEM dataset from the EMPIAR-10064. It is assumed that the wget and gunzip commands and the IMOD framework are installed in the system.

Preparing the data

  1. Download the dataset (uses wget):
    cd LOCAL_SUSAN_PATH/SUSAN/tutorials/empiar_10064/data
    ./download_data.sh
    
  2. Create the aligned stacks (uses IMOD):
    ./create_binned_aligned_stacks.sh
    
  3. Uncompress the initial reference (uses gunzip):
    cd LOCAL_SUSAN_PATH/SUSAN/tutorials/empiar_10064
    gunzip emd_3420_b4.mrc.gz
    

Running the Tutorial

Depending on the system setup:

About

SUSAN is a sub-tomogram averaging (StA) workflow for CryoET based on sub-stacks of images instead sub-volumes of tomograms. Such an approach substantially lowers computational complexity to speed up StA processing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 42.4%
  • Jupyter Notebook 27.8%
  • MATLAB 18.6%
  • Python 8.5%
  • Cuda 2.3%
  • CMake 0.3%
  • Other 0.1%