Python bindings for the HiGlass viewer
Project description
HiGlass Python
Python bindings to the HiGlass for tile serving, view config generation, and Jupyter Notebook + Lab integration.
This package provide access to:
- server: a lightweight flask server
- tilesets: tileset API
- client: an API for generating view configs
- viewer: an API for launching HiGlass in Jupyter Notebook or Lab
Requirements
Installation
First install higlass-python
via pip:
pip install higlass-python
Jupyter notebook integration
Open a terminal and execute the following code to activate the integration:
# The following is only required if you have not enabled the ipywidgets nbextension yet
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter nbextension install --py --sys-prefix higlass
jupyter nbextension enable --py --sys-prefix higlass
Jupyter notebook integration
Open a terminal and execute the following code to activate the integration:
# The following is only required if you have not enabled the jupyterlab manager yet
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install higlass-jupyter
Getting started
Take a look at notebooks/Examples.ipynb on how to get started.
Development
-
Install the package in editable mode. (The module will be imported from the development directory, rather than copied to
site-packages
).pip install -e .
-
Build and enable the Jupyter Notebook Extension. (With the
--symlink
option, the assets inhiglass/static
are linked to the extension registry rather than copied.)python setup.py jsdeps jupyter nbextension enable --py --sys-prefix widgetsnbextension jupyter nbextension install --py --symlink --sys-prefix higlass jupyter nbextension enable --py --sys-prefix higlass
-
Uninstall the Jupyter Notebook Extension
jupyter nbextension uninstall --py --sys-prefix higlass
-
Experimental: install the Jupyter Lab Extension
cd js && jupyter labextension link .
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 higlass-python-0.1.12.tar.gz
.
File metadata
- Download URL: higlass-python-0.1.12.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55b71e3fee2531b241086718d8a0855169acca0221c50153c45f549a657b7959 |
|
MD5 | 122dde61950427d4e5962c1e2af3e5e9 |
|
BLAKE2b-256 | 1d4fd31ae5979e30cc2761010a340cdce601c986ce3cce22e6772b8d37aac86c |