{ "info": { "author": "I2PC", "author_email": "scipion@cnb.csic.es", "bugtrack_url": null, "classifiers": [], "description": "=============\nISPYB MONITOR\n=============\n\nThis plugin contains a monitor to send data to an ISPyB database, so having a working ISPyB database is required.\nBelow we summarize the steps taken to test this plugin if you don't already have ISPyB.\n\n=====\nSetup\n=====\n\n- **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\n\n- **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.\n\n- **Log in as root**:\n\n.. code-block::\n\n $mysql -u root -p\n\n- **Set log_bin_trust_function_creators**:\n\n.. code-block::\n\n MariaDB [(none)]> set global log_bin_trust_function_creators=ON;\n Query OK, 0 rows affected (0.000 sec)\n\n\n- **Create DB**:\n\n.. code-block::\n\n MariaDB [(none)]> create database ispyb;\n Query OK, 1 row affected (0.000 sec)\n\n- **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.\n\n.. code-block::\n\n MariaDB [(none)]> CREATE USER username;\n MariaDB [(none)]> CREATE USER username@\u2019localhost\u2019;\n MariaDB [(none)]> use ispyb\n MariaDB [(ispyb)]> GRANT ALL PRIVILEGES ON ispyb.* to username@'localhost';\n MariaDB [(ispyb)]> grant all privileges on ispyb.* to username@'%';\n\n- **Add schemas**: Clone this repository and follow steps to add schemas https://github.com/DiamondLightSource/ispyb-database\n\n- **Create a config file**: based on https://github.com/DiamondLightSource/ispyb-api/blob/master/conf/config.example.cfg\n\n.. code-block::\n\n [ispyb_mysql_sp]\n user = username\n pw =\n host = localhost\n port = 3306\n db = ispyb\n\n- **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)\n\n.. code-block::\n\n [VARIABLES]\n SCIPION_NOTES_PROGRAM =\n SCIPION_NOTES_ARGS =\n SCIPION_NOTES_FILE = notes.txt\n SCIPION_NOTIFY = False\n ISPYB_CONFIG=/path/to/ispyb.conf\n\n- **Install this plugin:**\n\n.. code-block::\n\n scipion installp -p scipion-em-ispyb\n\nAlternatively, in devel mode:\n\n.. code-block::\n\n scipion installp -p local/path/to/scipion-em-ispyb --devel\n\n\n============\nRun and test\n============\n\n- **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.\n\n- **ISPyB import error**: If the monitor fails because it can\u2019t import bz2, we need to install in our system libbz2-dev and re-install Scipion:\n\n.. code-block::\n\n sudo apt-get install libbz2-dev\n rm -rf software/lib/*\n rm -rf software/include/*\n rm software/bin/*\n scipion install -j 8\n\n- **Check the data in the ISPyB database**:\n\n.. code-block::\n\n MariaDB [ispyb]> select micrographFullPath, movieId, totalMotion from MotionCorrection;\n +--------------------------------------------------------------+---------+-------------+\n | micrographFullPath | movieId | totalMotion |\n +--------------------------------------------------------------+---------+-------------+\n | Runs/000615_ProtMotionCorr/extra/movie000001_aligned_mic.mrc | 1 | 1.96068 |\n | Runs/000615_ProtMotionCorr/extra/movie000002_aligned_mic.mrc | 2 | 3.57892 |\n | Runs/000615_ProtMotionCorr/extra/movie000003_aligned_mic.mrc | 3 | 2.17066 |\n | Runs/000615_ProtMotionCorr/extra/movie000004_aligned_mic.mrc | 4 | 1.96068 |\n | Runs/000615_ProtMotionCorr/extra/movie000005_aligned_mic.mrc | 5 | 3.57892 |\n | Runs/000615_ProtMotionCorr/extra/movie000006_aligned_mic.mrc | 6 | 2.17066 |\n | Runs/000615_ProtMotionCorr/extra/movie000007_aligned_mic.mrc | 7 | 1.96068 |\n | Runs/000615_ProtMotionCorr/extra/movie000008_aligned_mic.mrc | 8 | 3.57892 |\n | Runs/000615_ProtMotionCorr/extra/movie000009_aligned_mic.mrc | 9 | 2.17066 |", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/scipion-em/scipion-em-ispyb", "keywords": "scipion cryoem imageprocessing scipion-1.2", "license": "", "maintainer": "", "maintainer_email": "", "name": "scipion-em-ispyb", "package_url": "https://pypi.org/project/scipion-em-ispyb/", "platform": "", "project_url": "https://pypi.org/project/scipion-em-ispyb/", "project_urls": { "Homepage": "https://github.com/scipion-em/scipion-em-ispyb" }, "release_url": "https://pypi.org/project/scipion-em-ispyb/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "ISPyB monitor for scipion", "version": "1.0.0" }, "last_serial": 4883328, "releases": { "1.0.0": [ { "comment_text": "scipion-1.2", "digests": { "md5": "a7531ab487fe8f0f256d7711734a417f", "sha256": "eaec17218807f5e6856f81088aca672fe83d5956088e8dfb8ad73c24b89d7f56" }, "downloads": -1, "filename": "scipion-em-ispyb-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a7531ab487fe8f0f256d7711734a417f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22692, "upload_time": "2019-03-01T09:49:08", "url": "https://files.pythonhosted.org/packages/a9/88/25f7134420d26515eb3dc3b710bea83f7feab32734838c9fa58bbd6f9c6c/scipion-em-ispyb-1.0.0.tar.gz" } ], "1.0.0a0": [ { "comment_text": "scipion-1.2", "digests": { "md5": "ea5052b1bcbb21a8470338893c740d47", "sha256": "e8291606e162e05aabbca75110589c9b7568a494a4a242cd5a7bf48e9a7f6ccb" }, "downloads": -1, "filename": "scipion-em-ispyb-1.0.0a0.tar.gz", "has_sig": false, "md5_digest": "ea5052b1bcbb21a8470338893c740d47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10631, "upload_time": "2019-02-20T14:34:42", "url": "https://files.pythonhosted.org/packages/09/c5/f7d9cbe0ba3f4e256f3bf7b279f4cddc7b6471c87316936e5dbb6efdbe5b/scipion-em-ispyb-1.0.0a0.tar.gz" } ] }, "urls": [ { "comment_text": "scipion-1.2", "digests": { "md5": "a7531ab487fe8f0f256d7711734a417f", "sha256": "eaec17218807f5e6856f81088aca672fe83d5956088e8dfb8ad73c24b89d7f56" }, "downloads": -1, "filename": "scipion-em-ispyb-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a7531ab487fe8f0f256d7711734a417f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22692, "upload_time": "2019-03-01T09:49:08", "url": "https://files.pythonhosted.org/packages/a9/88/25f7134420d26515eb3dc3b710bea83f7feab32734838c9fa58bbd6f9c6c/scipion-em-ispyb-1.0.0.tar.gz" } ] }