Skip to main content

Resource of interactive data widgets

Project description

Living Figures

Collection of useful interactive data widgets

Widgets

The interactive data widgets provided in this repository have been created using the widgets library. The idea behind this approach is that the complete set of instructions needed to visualize a dataset can be packaged together in a single HTML file along with the data itself so that it can be viewed in any modern web browser. The underlying technology which enables this approach is Pyodide, as well as the stlite implementation of Streamlit.

Using the Store

All of the widgets provided in this store can be installed with:

pip install living-figures

Once installed, you can load your data into one of these widgets and save an interactive HTML file with:

from living_figures.bio.epigenome.widgets import PanEpiGenomeBrowser
from pathlib import Path
import pandas as pd

# Instantiate the object
lfig = PanEpiGenomeBrowser()

# Read in your data of interest (in this case epigenetic motif CSVs)
lfig._get_child(
    "files",
    "pacbio"
).parse_files(
    Path('motif_folder').rglob('*.motifs.csv')
)

# Save an HTML file
lfig.to_html(Path("my_epigenomes.html"))

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

living-figures-0.2.0.tar.gz (34.4 kB view hashes)

Uploaded Source

Built Distribution

living_figures-0.2.0-py2.py3-none-any.whl (47.8 kB view hashes)

Uploaded Python 2 Python 3

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