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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae78506d9500778fbcec8fb837becb4987ad84138a665ed47ceddd0e2cee9c8 |
|
MD5 | 51c114d3675ce1ee3794b751806cefe0 |
|
BLAKE2b-256 | e7afbdf4d5363a040078cfa8c3a04b29c940beb871d84ab2827e7823edeed60e |