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
Installation
Requirements
Install package
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 Lab 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 .
Troubleshooting
- If you are running JupyterLab
v1.x
and ipywidgetsv7.5
and the HiGlass widget is not being displayed! Then you might have an incompatible widget installed that makes all other widgets fail. Try to deinstall all other widgets to test HiGlass separately before submitting a ticket. For more information see https://github.com/jupyter-widgets/ipywidgets/issues/2483#issuecomment-508643088
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
File details
Details for the file higlass-python-0.4.4.tar.gz
.
File metadata
- Download URL: higlass-python-0.4.4.tar.gz
- Upload date:
- Size: 5.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c1d23eaf224707b1afa15c48de36b69d6bc6418611c46d6fc57a0295f86744 |
|
MD5 | 3772f95a072cffb2e7243d3135e4e546 |
|
BLAKE2b-256 | 0d870399eaea03a1a3cd2a7561ae5429162fad0e7dfc35fbe5222a85704feddf |
File details
Details for the file higlass_python-0.4.4-py3.7.egg
.
File metadata
- Download URL: higlass_python-0.4.4-py3.7.egg
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b75f15318f613cdb8d0a883d12155583819ec4dbf7dc2ec01a2d3560e49336 |
|
MD5 | 29d07cee120979e66b9c43c509246066 |
|
BLAKE2b-256 | df26b2245ae491a7bccf26978db7ca8bf5eab0c7355a147efbe6dd186982cfb3 |