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
twogroups_heatmap-0.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for twogroups_heatmap-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebcbfad028f9ab74e5902731e0af9bec33520ffb9525de043cedc1b2e5a9b2be |
|
MD5 | 70861512782806c3d69ed3afd752684a |
|
BLAKE2b-256 | 3e971bcbda05878857fc068b82b77bfaabb338ed6c92444a1b70f6ee3e9ef582 |