Skip to main content

Plugin to use TomoTwin within the Scipion framework

Project description

This plugin provides a wrapper for TomoTwin software: Particle picking in Tomograms using triplet networks and metric learning

PyPI release License Supported Python versions SonarCloud quality gate Downloads

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-tomotwin
  1. Developer’s version

    • download repository

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

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

TomoTwin software will be installed automatically with the plugin but you can also use an existing installation by providing TOMOTWIN_ENV_ACTIVATION (see below).

Important: you need to have conda (miniconda3 or anaconda3) pre-installed to use this program.

Configuration variables

CONDA_ACTIVATION_CMD: If undefined, it will rely on conda command being in the PATH (not recommended), which can lead to execution problems mixing scipion python with conda ones. One example of this could can be seen below but depending on your conda version and shell you will need something different: CONDA_ACTIVATION_CMD = eval “$(/extra/miniconda3/bin/conda shell.bash hook)”

TOMOTWIN_ENV_ACTIVATION (default = conda activate tomotwin-0.9.1): Command to activate the TomoTwin environment. Tomotwin uses cuda-11.8, so you might want to activate specific CUDA libs via e.g. TOMOTWIN_ENV_ACTIVATION = . /etc/profile.d/lmod.sh && module load cuda/11.8 && conda activate tomotwin-0.9.1

TOMOTWIN_MODEL (default = software/em/tomotwin_model-092023/tomotwin_model_p120_092023_loss.pth): Path to the pre-trained model.

NAPARI_ENV_ACTIVATION (default = conda activate napari-0.4.19): Command to activate the Napari viewer environment.

Verifying

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

  • scipion tests tomotwin.tests.test_protocols_tomotwin.TestTomoTwinRefBased

  • scipion tests tomotwin.tests.test_protocols_tomotwin.TestTomoTwinClusterBased

Supported versions

0.8.0, 0.9.0b1, 0.9.1

Protocols

  • clustering-based picking (step 1)

  • clustering-based picking (step 2)

  • create tomo masks

  • reference-based picking

References

  1. TomoTwin: Generalized 3D Localization of Macromolecules in Cryo-electron Tomograms with Structural Data Mining. Gavin Rice, Thorsten Wagner, Markus Stabrin, Stefan Raunser. https://www.biorxiv.org/content/10.1101/2022.06.24.497279v1

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-tomotwin-3.5.1.tar.gz (160.4 kB view details)

Uploaded Source

Built Distribution

scipion_em_tomotwin-3.5.1-py3-none-any.whl (170.3 kB view details)

Uploaded Python 3

File details

Details for the file scipion-em-tomotwin-3.5.1.tar.gz.

File metadata

  • Download URL: scipion-em-tomotwin-3.5.1.tar.gz
  • Upload date:
  • Size: 160.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for scipion-em-tomotwin-3.5.1.tar.gz
Algorithm Hash digest
SHA256 859902b5390753af738d6bc7b9c8c91159fd5bdb51c1d829a7b53f038dc19ac7
MD5 892a2726cf6589eb5296de1fdc6ef175
BLAKE2b-256 ad1e7ebc21d0194cbe4e698ce1dcb815053191acd7ea699fc2a131a3123a9f7c

See more details on using hashes here.

File details

Details for the file scipion_em_tomotwin-3.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for scipion_em_tomotwin-3.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bcd4ab291dd80d7f2f195034f521eb3cc1083f478bf7756c8e5dfb91e703b92
MD5 9fa2c2e64e3ff9b0e406bb513ad18f32
BLAKE2b-256 d2b587e787e17d9b4da5e8d7377331c26802cf3a7fb2acb1f6b61aca5fa90ef5

See more details on using hashes here.

Supported by

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