INDRA Curation
Project description
INDRA Curation
This is a fairly simple wrapper surrounding the HTML assembler allowing a user with direct access to the database to perform curations on custom generated lists of INDRA Statements, stored in pickle files.
A key feature of this interface, which is a major improvement over the current (as of this writing) INDRA Database interface is that you can load and see previous curations for each piece of evidence. This is was made practically possible by converting the curation interface to using Vue.js, rather than the pure JavaScript used previously.
Installation
To install from Github, run
pip install git+https://github.com/gyorilab/indra_curation.git
or for local development, clone and then install in edit mode as
git clone https://github.com/gyorilab/indra_curation.git
cd indra_curation
pip install -e .
Running
To run the tool, first make sure you have your INDRA Statements generated in a
pickle file somewhere, with path /path/to/workingdir. You then start up
the service by running a variant of the following command:
python -m indra_curation.app --directory /path/to/workingdir --tag label --email your@email.com --check-syntax
This will begin a web service on your localhost. When submitting a curation with text in the comments field, the syntax will be checked for validity. If the syntax is invalid, the curation will not be submitted and an error message will be displayed of what the issue is.
Full usage (copied from python -m indra_curation.app --help):
Usage: python -m indra_curation.app [OPTIONS]
Generate and enable curation using an HTML document displaying the
statements in the given pickle file.
Options:
--tag TEXT Give these curations a tag to separate them
out from the rest. This tag is stored as
"source" in the INDRA Database Curation
table. [required]
--email TEXT Email address of the curator [required]
--directory TEXT The directory containing any files you wish
to load. This may either be local or on s3.
If using s3, give the prefix as
's3:bucket/prefix/path/'. Without including
's3:', it will be assumed the path is local.
Note that no '/' will be added automatically
to the end of the prefix. [default:
/home/klas/repos/indra_curation]
--port INTEGER The port on which the service is running.
[default: 5000]
--statement-sorting [evidence|stmt_hash|stmt_alphabetical|agents_alphabetical]
The sorting method to use for the pickled
statements. If not provided, the statements
will be sorted the way they are stored in
the pickle file or the cache. Available
options are: - 'evidence' (sort by number
of evidence, highest first), - 'stmt_hash'
(sort by statement hash), -
'stmt_alphabetical' (sort by statement type
and alphabetically by agent names), -
'agents_alphabetical' (sort by agent names,
then by statement type).
--reverse-sorting If provided, the statements will be sorted
in reverse order. Does not apply if no
sorting method is provided.
--check-syntax If provided, the comment syntax will be
checked for validity.
--app-debug If provided, the Flask app will run in debug
mode.
--help Show this message and exit.
Curating
You can now go to http://localhost:5000 and select one of your pickle files
from the dropdown menu to begin curating. The back-end service will generate
and cache JSON, which can be forcefully reloaded by clicking the
button.
You can now begin exploring the statements and their evidence. To view prior curations, click the button next to a curation called "Load Previous".
To submit a curation, simply fill out the form and click submit.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file indra_curation-1.0.0.tar.gz.
File metadata
- Download URL: indra_curation-1.0.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dae164876896c241e651797d6f77c1a6c6498231d4fbdbe2a648d1ef856292e
|
|
| MD5 |
0fc4db87543ca673d46a88f246c5b4d3
|
|
| BLAKE2b-256 |
32f05eea31b05785979bc98324938003b7d1be07713acff6d512ab79a9e7a0d9
|
File details
Details for the file indra_curation-1.0.0-py3-none-any.whl.
File metadata
- Download URL: indra_curation-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6fca2af025471d7e3f4d211757f210f700a022626106a3b12e972eb02e95f91
|
|
| MD5 |
802c8bf5e6fd58f4c5d8e8a365485c8a
|
|
| BLAKE2b-256 |
aadabb6c813ab89215bda043e48f67ec523a56f0f2210820cffc893919d47bc8
|