Socket
Socket
Sign inDemoInstall

twogroups-heatmap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twogroups-heatmap

Create a heatmap of representing intersection between two groups


Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc