Skip to main content

Cryolo picker, training and custom model importer. Janni denoising.

Project description

Sphire Scipion plugin

This plugin allows to use cryolo within Scipion framework. So far we have implemented:

  • crYOLO particle picker

  • JANNI denoising

This plugin is able to install cryolo (which includes janni) and the generic models for both picking and denoising.

crYOLO is a pipeline for particle detection in cryo-electron microscopy images which is based on the deep learning object detection system “You Only Look Once” (YOLO).

JANNI (Just Another Noise 2 Noise Implementation) implements a neural network denoising tool based on deep learning.

Setup

It is assumed that Scipion3 is currently installed. If not, follow the instructions here.

Plugin scipion-em-sphire requires to have Conda (Anaconda or Miniconda) installed and not initialized in the shell.

  • Install this plugin in user mode:

    It can be installed in user mode via Scipion main window (Configuration > Plugins) or using the command line:

scipion installp -p local/path/to/scipion-em-sphire
  • Install this plugin in developer mode:

scipion installp -p local/path/to/scipion-em-sphire --devel

Plugin integration

The following steps presuppose that you have Anaconda or Miniconda installed on your computer. In ~/.config/scipion/scipion.conf (Option View > Show Hidden Files must be enabled) set CONDA_ACTIVATION_CMD variable in the Packages section.

For example:

CONDA_ACTIVATION_CMD = . ~/anaconda2/etc/profile.d/conda.sh

If you wish to install the plugin with the default settings just go to plugin manager and install scipion-em-sphire. This will create the default environment named cryolo-x.x.x (where x.x.x is referred to the downloaded version of cryolo) for you.

You are ready to use crYOLO and JANNI. If you wish to change the environment name you can introduce CRYOLO_ENV_ACTIVATION variable in the ~/.config/scipion.conf variables section:

For example:

CRYOLO_ENV_ACTIVATION = conda activate cryoloenvname

Downloaded crYOLO and JANNI general models can be found, respectively, in the following locations:

<SCIPION_HOME>/software/em/cryolo_model-[model_version]

<SCIPION_HOME>/software/em/cryolo_negstain_model-[model_version]

<SCIPION_HOME>/software/em/janni_model-[model_version]

Running only with CPU

CrYOLO is able to run in CPU, however this is only recomended for predicting task, not trainning. For that reason, the CPU implementation is only enabled for the crYOLO-Picking protocol. In this protocol, both implementation are possible and you must select one of them in the GPU section of the from.

The CPU implementation of crYOLO is not installed by default. Therefore, to be able to run the CPU version of crYOLO-picking, you must install the cryoloCPU-[version] package in the Plugin Manager >> scipion-em-sphire or by running

scipion3 installb cryoloCPU

The CPU integration of crYOLO is installed under a conda environment called cryoloCPU-[version] . If you want to modify this environ name, please set the following variable in the scipion’s config file.

CRYOLO_ENV_ACTIVATION_CPU = conda activate cryoloCPU-envName

Running plugin tests

To check that everything is properly installed and configured, you might want to run some tests:

scipion test --grep sphire --run

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-sphire-3.0.3.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

scipion_em_sphire-3.0.3-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file scipion-em-sphire-3.0.3.tar.gz.

File metadata

  • Download URL: scipion-em-sphire-3.0.3.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for scipion-em-sphire-3.0.3.tar.gz
Algorithm Hash digest
SHA256 2b74364e8129f8fc01a4209f6df7d93e59edd2428013d689f9b3802fbfad2a2e
MD5 1a15a13dfdb4cfb6b6b92ebbbb4db5fd
BLAKE2b-256 cba6a861cc3865545fa12ffb198be4675fd1ed059d9162678cccf5bf6516971b

See more details on using hashes here.

File details

Details for the file scipion_em_sphire-3.0.3-py3-none-any.whl.

File metadata

  • Download URL: scipion_em_sphire-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for scipion_em_sphire-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 49dca05403f9845103781f263413b4c456e5b4acbded4980ca4c069579ccb4e5
MD5 e70b22a44f138058600a328abb8fce8d
BLAKE2b-256 7466da5f3caad28b28beeb729abb3600dc866d381cb32869fae78a7652c8fbe6

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