Skip to main content

Create a heatmap of representing intersection between two groups

Project description

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


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

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

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

twogroups_heatmap-0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

twogroups_heatmap-0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded 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