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
Built Distribution
Close
Hashes for twogroups_heatmap-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcadb8529af967d3d06747209725f7523c92fdf7441bb026e92edfdce5de7a48 |
|
MD5 | 1af51236948ac72ea58326c4e7c21afa |
|
BLAKE2b-256 | f990d726f9488f5afb8bbfaacf8ffff975489397b5e1b53d7027cb42d065b045 |