Skip to content
/ BioEM Public

GPU accelerating computing for Bayesian inference of electron microscopy images. BioEM is a publicly available software that enables the characterization of structural models with respect to individual electron microscopy images.

License

Notifications You must be signed in to change notification settings

bio-phys/BioEM

Repository files navigation

BioEM: Bayesian inference of Electron Microscopy

2.1 VERSION: July, 2019

Build status and test coverage

Build status Code coverage Doc License: GPL v3

Contributors

Pilar Cossio, David Rohr, Fabio Baruffa, Markus Rampp, Luka Stanisic, Volker Lindenstruth and Gerhard Hummer

References

Description

The BioEM code calculates the posterior probability of a structural model given multiple experimental EM images. The posterior is calculated by solving a multidimensional integral over many nuisance parameters that account for the experimental factors in the image formation, such as molecular orientation and interference effects. The BioEM software computes this integral via numerical grid sampling over a portable CPU/GPU computing platform. By comparing the BioEM posterior probabilities it is possible to discriminate and rank structural models, allowing to characterize the variability and dynamics of the biological system.

For a detailed description of the BioEM software see the BioEM documentation, also provided in the doc/ directory.

Command line input & help is found by just running the compiled executable ./bioEM

  ++++++++++++ FROM COMMAND LINE +++++++++++

Command line inputs:
  --Modelfile       arg (Mandatory) Name of model file
  --Particlesfile   arg (Mandatory) Name of particle-image file
  --Inputfile       arg (Mandatory) Name of input parameter file
  --ReadOrientation arg (Optional) Read file name containing orientations
  --ReadPDB             (Optional) If reading model file in PDB format
  --ReadModelMRC        (Optional) If reading model file in MRC format
  --ReadMRC             (Optional) If reading particle file in MRC format
  --ReadMultipleMRC     (Optional) If reading multiple MRCs
  --DumpMaps            (Optional) Dump maps after they were read from particle-image file
  --LoadMapDump         (Optional) Read Maps from dump option
  --DumpModel           (Optional) Dump model after it was read from model file
  --LoadModelDump       (Optional) Read model from dump option
  --PrintCOORDREAD      (Optional) Print model coordinates
  --OutputFile      arg (Optional) For changing the outputfile name
  --help                (Optional) Produce help message

Details for the inputfiles and formats are provided in sections 1 and 2 of the BioEM documentation.

Output

  • Main output file with, default name "Output_Probabilities", provides the posterior probability for each image, as well as the parameters that give a maximum value of the posterior:

    RefMap #(number Particle Map) Probability #(log(P))

    RefMap #(number Particle Map) Maximizing Param: #(Euler Angles) #(PSF parameters) #(center displacement)

    **Important: It is recommended to compare log(P) with respect to other Models or to Noise as in [1].

  • (Optional) Write the posterior probabilities as a function of the orientations (key word: WRITE_PROB_ANGLES in InputFile, see documentation).

Tutorial

A directory with example EM particles, models, and input files are provided in the Tutorial_BioEM directory of the BioEM-tutorials subproject. The tutorial is described in section 4 of the BioEM documentation.

Installation

To build and install bioEM a cmake procedure is used, for example:

#clone the repository
git clone ...
cd BioEM
#build the code (CPU version)
mkdir build
cd build
cmake ..
make VERBOSE=1

Dependencies and software requirements:

  • Compiler: a modern C++ compiler which is OpenMP compliant and (optionally) complies with CUDAs nvcc (tested with Intel icpc 12-16, GCC 4.7-5.1) -> adapt the name of the compiler using ccmake

    for free software see: https://gcc.gnu.org/

  • MPI: the Message Passing Standard library (tested with Intel MPI 4.1-5.1, IBM PE 1.3-1.4) -> adapt the names of the MPI compiler wrappers using ccmake

    for free software see: http://www.open-mpi.de/

  • FFTW: a serial but fully thread-safe fftw3 installation or equivalent (tested with fftw 3.3) -> point environment variable $FFTW_ROOT to a FFTW3 installation or use ccmake to specify

    for free software see: http://www.fftw.org

  • CUDA (required to build and run the GPU version)

    for free software see: https://developer.nvidia.com/cuda-downloads

For details on the installation section 1 of the BioEM documentation.

Performance Variables

The BioEM performance variables enhance or modify the code's computational performance without modifying the numerical results. They should be tuned for the specific computing node characteristics where bioEM is executed, e.g., select the number of GPUs to use, OpenMP threads etc. These are passed via environment variables. See section 4 of the BioEM documentation for a detailed description.

License

The BioEM program is a free software, under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. This program is distributed in the hope that it will be useful, but without any warranty. See License.txt for more details.

About

GPU accelerating computing for Bayesian inference of electron microscopy images. BioEM is a publicly available software that enables the characterization of structural models with respect to individual electron microscopy images.

Resources

License

Stars

Watchers

Forks

Packages

No packages published