Skip to main content

Build Status PyPI Open In Colab

ExploSig Connect

Helpers for sending data from a Python environment to ExploSig (via ExploSig Server) for web-based interactive visualization.

Installation

pip install explosig-connect

Example Usage - Connecting to an existing session

>>> from explosig_connect import connect

>>> # Connect using a session ID supplied by ExploSig.
>>> session_id = 'af6242f3'
>>> conn = connect(session_id)

>>> # Obtain the SBS mutation counts matrix associated with the session.
>>> sbs_counts_df = conn.get_mutation_category_counts('SBS')

>>> # You run some custom code to derive better signature exposures.
>>> exposures_df = my_exposures_computation_method(sbs_counts_df)

>>> # Send the new exposures back to ExploSig for visualization.
>>> conn.send_exposures('SBS', exposures_df)

Example Usage - Starting a new session

>>> from explosig_connect import connect

>>> # Start a new 'empty' session with no samples, signatures, etc. selected.
>>> # This will attempt to open ExploSig in a new browser tab that starts the session.
>>> conn = connect()

>>> # Send an SBS mutation counts matrix to visualize.
>>> conn.send_mutation_category_counts('SBS', my_sbs_counts_df)

>>> # Send an exposures matrix to visualize.
>>> conn.send_exposures('SBS', my_sbs_exposures_df)

>>> # Send a signatures matrix to visualize.
>>> conn.send_signatures('SBS', my_sbs_signatures_df)

Development

Build and install from the current directory.

python setup.py sdist bdist_wheel && pip install .

Metadata

Release files for explosig-connect 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for explosig-connect 0.0.7
File Size Uploaded
explosig-connect-0.0.7.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for explosig-connect 0.0.7
File Interpreter ABI Platform
explosig_connect-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / explosig-connect-0.0.7.tar.gz

Download URL explosig-connect-0.0.7.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a256972586218019759ed2085ec858f82a5b7b0cc71da98ee5498d76621d0dc7
BLAKE2b-256 checksum
How to use checksums
cff5baeead68815a0fb893d3f94ba979820a2feee851a2ef86e8ae2ce13866f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.9

Release files / explosig_connect-0.0.7-py3-none-any.whl

Download URL explosig_connect-0.0.7-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29e521e9e061b0329d6c2ddd31b6066fb7b29aa2835d14d2af13545e6245edbf
BLAKE2b-256 checksum
How to use checksums
740ab50bbdc55041a99dd163459c3f4fc0184ba027d2033e9f633efddc77e658
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page