Skip to main content

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.

Metadata

Release files for indra-curation 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for indra-curation 1.0.0
File Size Uploaded
indra_curation-1.0.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for indra-curation 1.0.0
File Interpreter ABI Platform
indra_curation-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.0 kB

Release files / indra_curation-1.0.0.tar.gz

Download URL indra_curation-1.0.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4dae164876896c241e651797d6f77c1a6c6498231d4fbdbe2a648d1ef856292e
BLAKE2b-256 checksum
How to use checksums
32f05eea31b05785979bc98324938003b7d1be07713acff6d512ab79a9e7a0d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release files / indra_curation-1.0.0-py3-none-any.whl

Download URL indra_curation-1.0.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6fca2af025471d7e3f4d211757f210f700a022626106a3b12e972eb02e95f91
BLAKE2b-256 checksum
How to use checksums
aadabb6c813ab89215bda043e48f67ec523a56f0f2210820cffc893919d47bc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page