Skip to main content

ISPyB monitor for scipion

Project description

ISPYB MONITOR

This plugin contains a monitor to send data to an ISPyB database, so having a working ISPyB database is required. Below we summarize the steps taken to test this plugin if you don’t already have ISPyB.

Setup

$mysql -u root -p
  • Set log_bin_trust_function_creators:

MariaDB [(none)]> set global log_bin_trust_function_creators=ON;
Query OK, 0 rows affected (0.000 sec)
  • Create DB:

MariaDB [(none)]> create database ispyb;
Query OK, 1 row affected (0.000 sec)
MariaDB [(none)]> CREATE USER username;
MariaDB [(none)]> CREATE USER username@’localhost’;
MariaDB [(none)]> use ispyb
MariaDB [(ispyb)]> GRANT ALL PRIVILEGES ON ispyb.* to username@'localhost';
MariaDB [(ispyb)]> grant all privileges on ispyb.* to username@'%';
[ispyb_mysql_sp]
user = username
pw =
host = localhost
port = 3306
db = ispyb
  • Set ISPYB_CONFIG: you can do it in the terminal where you will launch Scipion doing export ISPYB_CONFIG=path/to/ispyb.cfg or set it in the variables section of ~/.config/scipion/scipion.conf)

[VARIABLES]
SCIPION_NOTES_PROGRAM =
SCIPION_NOTES_ARGS =
SCIPION_NOTES_FILE = notes.txt
SCIPION_NOTIFY = False
ISPYB_CONFIG=/path/to/ispyb.conf
  • Install this plugin:

scipion installp -p scipion-em-ispyb

Alternatively, in devel mode:

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

Run and test

  • Run Scipion and the ISPyB monitor: you should now be able to find the ISPyB monitor in the list of available protocols of Scipion. Launch a workflow with one or all of the following protocols: import movies,movie alignment, ctf estimation (TestStreamingWorkflow is a good candidate), and set them as the input of ISPyB Monitor. For test purposes, you can select “test” as the database in the dropdown menu at the bottom, and use cm14451-2 as the visit.

  • ISPyB import error: If the monitor fails because it can’t import bz2, we need to install in our system libbz2-dev and re-install Scipion:

sudo apt-get install libbz2-dev
rm -rf software/lib/*
rm -rf software/include/*
rm software/bin/*
scipion install -j 8
  • Check the data in the ISPyB database:

MariaDB [ispyb]> select micrographFullPath, movieId, totalMotion from MotionCorrection;
+--------------------------------------------------------------+---------+-------------+
| micrographFullPath                                           | movieId | totalMotion |
+--------------------------------------------------------------+---------+-------------+
| Runs/000615_ProtMotionCorr/extra/movie000001_aligned_mic.mrc |       1 |     1.96068 |
| Runs/000615_ProtMotionCorr/extra/movie000002_aligned_mic.mrc |       2 |     3.57892 |
| Runs/000615_ProtMotionCorr/extra/movie000003_aligned_mic.mrc |       3 |     2.17066 |
| Runs/000615_ProtMotionCorr/extra/movie000004_aligned_mic.mrc |       4 |     1.96068 |
| Runs/000615_ProtMotionCorr/extra/movie000005_aligned_mic.mrc |       5 |     3.57892 |
| Runs/000615_ProtMotionCorr/extra/movie000006_aligned_mic.mrc |       6 |     2.17066 |
| Runs/000615_ProtMotionCorr/extra/movie000007_aligned_mic.mrc |       7 |     1.96068 |
| Runs/000615_ProtMotionCorr/extra/movie000008_aligned_mic.mrc |       8 |     3.57892 |
| Runs/000615_ProtMotionCorr/extra/movie000009_aligned_mic.mrc |       9 |     2.17066 |

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-ispyb-1.0.0.tar.gz (22.7 kB view details)

Uploaded Source

File details

Details for the file scipion-em-ispyb-1.0.0.tar.gz.

File metadata

  • Download URL: scipion-em-ispyb-1.0.0.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12

File hashes

Hashes for scipion-em-ispyb-1.0.0.tar.gz
Algorithm Hash digest
SHA256 eaec17218807f5e6856f81088aca672fe83d5956088e8dfb8ad73c24b89d7f56
MD5 a7531ab487fe8f0f256d7711734a417f
BLAKE2b-256 a98825f7134420d26515eb3dc3b710bea83f7feab32734838c9fa58bbd6f9c6c

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page