Skip to main content

Two groups heatmap

Generate an heatmap comparing overlaps between 2 set of labels in a pandas dataframe. This is useful in single-cell to compare the overlap between two clustering methods or 2 sets of cell type labels.

Installation

pip install twogroups-heatmap

Usage

from twogroups_heatmap import intersection_heatmap
import pandas as pd

df = pd.DataFrame(
    {
        "cluster1": ["A", "A", "B", "B", "C", "C"],
        "cluster2": ["A", "B", "B", "C", "C", "D"],
    }
)

intersection_heatmap(df, xcol="cluster1", ycol="cluster2")

Metadata

Release files for twogroups-heatmap 0.1.3

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

Source distribution (sdist)

Source distribution for twogroups-heatmap 0.1.3
File Size Uploaded
twogroups_heatmap-0.1.3.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for twogroups-heatmap 0.1.3
File Interpreter ABI Platform
twogroups_heatmap-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / twogroups_heatmap-0.1.3.tar.gz

Download URL twogroups_heatmap-0.1.3.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a892d2a1f72151f8a0e35240f41111af72c192ca6a011c21453d9670e8b6bc22
BLAKE2b-256 checksum
How to use checksums
cf2bcf951b6d80a6a5430942458c834bea5263888f14d88a89280a89dce0df58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / twogroups_heatmap-0.1.3-py3-none-any.whl

Download URL twogroups_heatmap-0.1.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcadb8529af967d3d06747209725f7523c92fdf7441bb026e92edfdce5de7a48
BLAKE2b-256 checksum
How to use checksums
f990d726f9488f5afb8bbfaacf8ffff975489397b5e1b53d7027cb42d065b045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

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