Skip to main content

Python bindings for the HiGlass viewer

Project description

HiGlass Python

HiGlass Python Docs 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.

Documentation

There is more detailed documentation at docs-python.higlass.io.

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 .
    

Editing the docs

To work on the docs, start the autoserver and edit the rst files in the docs directory:

cd docs
./serve.sh

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.8.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

higlass_python-0.4.8-py2.py3-none-any.whl (3.7 MB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: higlass-python-0.4.8.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for higlass-python-0.4.8.tar.gz
Algorithm Hash digest
SHA256 85230d1170e26ba1d450337d922252dc29f2ce221f1c8f6ccf0127dd5fced7ae
MD5 12ab62439c641f48aac70f086d0cc7fc
BLAKE2b-256 17f7d7b4bd9e68f4f4c7fb3d5e6bdeb524eb558d0778de5b7bb2a2e2d2766f2e

See more details on using hashes here.

File details

Details for the file higlass_python-0.4.8-py2.py3-none-any.whl.

File metadata

  • Download URL: higlass_python-0.4.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for higlass_python-0.4.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0788e3866e0916ce5802719ff816b0c0396961b5765148e041fdbd0eb5886636
MD5 74955c233f63cff54a84e66fff1a9b68
BLAKE2b-256 cdacf69b03842fcf7be9ef9460202a831512fcd37ab3d77476a321803a436019

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