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
Install MariaDB: Download choosing OS and version (recommended >=10.2), follow steps: https://downloads.mariadb.org/mariadb/repositories/#mirror=digitalocean-sfo&distro=Ubuntu&distro_release=xenial–ubuntu_xenial&version=10.3
Fix root login: check if you can log in as root to mysql ( $mysql -u root -p ).Skip this step if you log in successfully.If not, use the accepted answer on this link to fix your root login: https://askubuntu.com/questions/705458/ubuntu-15-10-mysql-error-1524-unix-socket.
Log in as root:
$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)
Create user for DB: Grant privileges to your user on ispyb database we just created. See https://stackoverflow.com/questions/5016505/grant-all-privileges-on-database . Here we create a user username that can log in without password.
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@'%';
Add schemas: Clone this repository and follow steps to add schemas https://github.com/DiamondLightSource/ispyb-database
Create a config file: based on https://github.com/DiamondLightSource/ispyb-api/blob/master/conf/config.example.cfg
[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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file scipion-em-ispyb-1.0.0a0.tar.gz
.
File metadata
- Download URL: scipion-em-ispyb-1.0.0a0.tar.gz
- Upload date:
- Size: 10.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8291606e162e05aabbca75110589c9b7568a494a4a242cd5a7bf48e9a7f6ccb |
|
MD5 | ea5052b1bcbb21a8470338893c740d47 |
|
BLAKE2b-256 | 09c5f7d9cbe0ba3f4e256f3bf7b279f4cddc7b6471c87316936e5dbb6efdbe5b |