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
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")

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.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

twogroups_heatmap-0.1.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file twogroups_heatmap-0.1.3.tar.gz.

File metadata

  • Download URL: twogroups_heatmap-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for twogroups_heatmap-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a892d2a1f72151f8a0e35240f41111af72c192ca6a011c21453d9670e8b6bc22
MD5 1c66365932e07af7380d0b163f76a252
BLAKE2b-256 cf2bcf951b6d80a6a5430942458c834bea5263888f14d88a89280a89dce0df58

See more details on using hashes here.

File details

Details for the file twogroups_heatmap-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for twogroups_heatmap-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bcadb8529af967d3d06747209725f7523c92fdf7441bb026e92edfdce5de7a48
MD5 1af51236948ac72ea58326c4e7c21afa
BLAKE2b-256 f990d726f9488f5afb8bbfaacf8ffff975489397b5e1b53d7027cb42d065b045

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