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
Built Distribution
Close
Hashes for twogroups_heatmap-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011e3a907cc9ac945f2ac26998a1048d8bad8d063cc8312a72c98fb6f51f1fc6 |
|
MD5 | 1daff013b7521817d859442f363d114b |
|
BLAKE2b-256 | cd4aa87a7ac10df235ef16f22b783cc4b7b394edf1f62c111e06fc3b263d4e20 |