Skip to main content

Plugin to use Motioncorr within the Scipion framework

Project description

This plugin allows to use motioncor3 program within the Scipion framework.

Motioncor3 is a GPU-accelerated program for correction of electron beam-induced sample motion. It is developed by Shawn Zheng.

PyPI release License Supported Python versions SonarCloud quality gate Downloads

IMPORTANT!

  1. If you have imported movies with a gain file in DM4 format, you need to flip the gain reference upside-down in the motioncor protocol! (see details)

  2. When importing EER movies, you should specify dose per single EER frame during import step.

  3. When importing EER tilt-series movies, you should specify dose per tilt during import step. It is not relevant for motion-correction (no dose-weighting is done here), but will be used later on.

  4. If you are processing EER movies and providing *.gain reference file camera defects will be automatically extracted from the gain file header and converted to Motioncor format. This step is omitted if you provide a defects file yourself.

Installation

You will need to use 3.0+ version of Scipion to be able to run these protocols. To install the plugin, you have two options:

  1. Stable version

scipion installp -p scipion-em-motioncorr
  1. Developer’s version

    • download repository

    git clone -b devel https://github.com/scipion-em/scipion-em-motioncorr.git
    • install

    scipion installp -p /path/to/scipion-em-motioncorr --devel

Important: Starting from plugin v3.15, the config variables have been renamed. See: scipion3 config -p motioncorr

  • Motioncor binaries will be installed automatically with the plugin, but you can also link an existing installation.

  • Default installation path assumed is software/em/motioncor3-1.1.2, if you want to change it, set MOTIONCOR_HOME in scipion.conf file to the folder where the Motioncor3 is installed.

  • Depending on your CUDA version this plugin will guess the right default binary from MotionCor3_1.1.2_CudaXY_06-11-2024 (X is for cuda major version, Y for the minor). You can always set a different one by explicitly setting MOTIONCOR_BIN variable.

  • If you need to use CUDA different from the one used during Scipion installation (defined by CUDA_LIB), you can add MOTIONCOR_CUDA_LIB variable to the config file. Various binaries can be downloaded from the official UCSF website.

For an automatically updated installation of motioncor binaries, do not define neither MOTIONCOR_HOME nor MOTIONCOR_BIN.

To check the installation, simply run the following Scipion tests:

scipion test motioncorr.tests.test_protocols_motioncor.TestMotioncorAlignMovies
scipion test motioncorr.tests.test_protocols_tomo.TestMotioncorTiltSeriesAlignMovies

Licensing

Motioncor3 is provided under BSD-3-Clause license

Supported versions

  • motioncor3 1.1.1, 1.1.2

  • motioncor2 1.6.4

Protocols

  • movie alignment

  • align tilt-series movies

References

  1. Shawn Q Zheng, Eugene Palovcak, Jean-Paul Armache, Kliment A Verba, Yifan Cheng & David A Agard. MotionCor2: anisotropic correction of beam-induced motion for improved cryo-electron microscopy. Nature Methods volume 14, pages 331–332 (2017).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scipion_em_motioncorr-3.17.0.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scipion_em_motioncorr-3.17.0-py3-none-any.whl (61.5 kB view details)

Uploaded Python 3

File details

Details for the file scipion_em_motioncorr-3.17.0.tar.gz.

File metadata

  • Download URL: scipion_em_motioncorr-3.17.0.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for scipion_em_motioncorr-3.17.0.tar.gz
Algorithm Hash digest
SHA256 fa71b3859ffbb06dcfa064c0403a8c31923d246e8d5832b5ae4c4791598c941a
MD5 08655aff23e05d00c9f8bfd8a5a5bcd9
BLAKE2b-256 7ac42718da62b2f9bde195d24bd67ed8863ed21730f28029d2676de9bfd1592b

See more details on using hashes here.

File details

Details for the file scipion_em_motioncorr-3.17.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scipion_em_motioncorr-3.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb2624cdcb22e6baa509367e35863f249287b96c594927fc6465d8014872e466
MD5 ca1771a1f70050831f9c312c467a5be2
BLAKE2b-256 3e4d4c1f5063a49d3136e1b1cdffb8be7b15cffc5552d62816741840934ef8a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page