ranking-agent / gamma-viewer

MIT License
0 stars 2 forks source link
ncats-translator

ARCHIVED: This tool is not being updated anymore and is on an old version of TRAPI.

Gamma Viewer

Upload a Translator standard message into a jupyter notebook and view it in a useful analytic user interface.

Installation

pip install gamma-viewer

Local Setup

Activate your python environment of choice. This package also requires you have nodejs and npm installed.

git clone git@github.com:ranking-agent/gamma-viewer.git
cd gamma-viewer
pip install -e .
jupyter nbextension install --py --symlink --sys-prefix gamma_viewer
jupyter nbextension enable --py --sys-prefix gamma_viewer

jupyter notebook

Usage

    from gamma_viewer import GammaViewer
    from IPython.display import display
    import json

    with open('translator_standard_message.json', 'r') as f:
        res = json.load(f)

    view = GammaViewer(props={"data":res})
    display(view)