Skip to main content

Python bindings for the HiGlass viewer

Project description

HiGlass Python

HiGlass Docs Python Build Status

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

  • Python >= 3.7
  • FUSE or MacFuse
  • Jupyter Notebook >= 5.7
  • Jupyter Lab >= 0.35

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 in higlass/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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

higlass-python-0.4.0.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

higlass_python-0.4.0-py3.7.egg (3.9 MB view details)

Uploaded Source

File details

Details for the file higlass-python-0.4.0.tar.gz.

File metadata

  • Download URL: higlass-python-0.4.0.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.4

File hashes

Hashes for higlass-python-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e085b87828c6a2e78e987ba0e40fd9b1df47411f645dc64b9c8dd059a0d2c821
MD5 bb95e2a9fcecb96361bfac01a0136e45
BLAKE2b-256 dc2bfdfd3224bfc87a3df47e2e8c3bb9e2f157bbd6476ff10ce218aad89bef18

See more details on using hashes here.

File details

Details for the file higlass_python-0.4.0-py3.7.egg.

File metadata

  • Download URL: higlass_python-0.4.0-py3.7.egg
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.4

File hashes

Hashes for higlass_python-0.4.0-py3.7.egg
Algorithm Hash digest
SHA256 26efc5f657b80008b20e3e04549dddcecf6dbc976eb739f38cbab521807e5271
MD5 240077a6a810f71ba1ee01d7b4f8c261
BLAKE2b-256 d76fdb9b097a84506f7fa7a3e31a0911f54db589406550924bcb4c5759000ce4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page