Skip to main content

Create UpSet plots using Altair

Project description

Altair UpSet

Create UpSet plots using Altair.

Installation

uv install altair-upset

Development

  1. Clone the repository:
git clone https://github.com/yourusername/altair-upset.git
cd altair-upset
  1. Create a virtual environment and install dependencies:
uv install -e ".[dev]"

Testing

Run the tests with:

uv install -e ".[test]"
uv run pytest

For coverage report:

uv run pytest --cov=altair_upset --cov-report=term-missing

Usage

import altair_upset as au
import pandas as pd

# Create sample data
data = pd.DataFrame({
    'set1': [1, 0, 1],
    'set2': [1, 1, 0],
    'set3': [0, 1, 1]
})

# Create UpSet plot
chart = au.UpSetAltair(
    data=data,
    title="Sample UpSet Plot",
    sets=["set1", "set2", "set3"]
)

# Display the chart
chart.show()

Credits

The original notebook is available at: https://github.com/hms-dbmi/upset-altair-notebook

If you use an UpSet figure in a publication, please cite the original paper:

Alexander Lex, Nils Gehlenborg, Hendrik Strobelt, Romain Vuillemot, Hanspeter Pfister. UpSet: Visualization of Intersecting Sets IEEE Transactions on Visualization and Computer Graphics (InfoVis), 20(12): 1983--1992, doi:10.1109/TVCG.2014.2346248, 2014.

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

altair_upset-0.1.0.tar.gz (426.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

altair_upset-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file altair_upset-0.1.0.tar.gz.

File metadata

  • Download URL: altair_upset-0.1.0.tar.gz
  • Upload date:
  • Size: 426.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for altair_upset-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96604b89a1b249d649cce152db61d34e765dbdf72ba0f590af172db9ab086276
MD5 9f7edba02f276c57d6c90aa61e9194a7
BLAKE2b-256 6897532676073e46ed2611b101e8cfd387fbbd97671f83ab9e9b785b2703c7cb

See more details on using hashes here.

File details

Details for the file altair_upset-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for altair_upset-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72e536acde72acc10d36c8dd1c7aab47c23a03d49b5d559fce314317917c73fa
MD5 f8f19ac260ac09c3a4ae81d4fd77fba7
BLAKE2b-256 99ee6f48536aa6c3e3932dd32874df9b6969b54aa63af32f622c329ab451e52a

See more details on using hashes here.

Supported by

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