hermione

Joyplots in Python with seaborn-style interface


License
MIT
Install
pip install hermione==0.1.2

Documentation

hermione

Horizon plots and more for single cells

Examples

import hermione as hm
import numpy as np
import pandas as pd

%matplotlib inline

# Create the data
rs = np.random.RandomState(1979)
x = rs.randn(500)
g = np.tile(list("ABCDEFGHIJ"), 50)
df = pd.DataFrame(dict(x=x, g=g))
m = df.g.map(ord)
df["x"] += m


hm.horizonplot(data=df, x='x', row='g', xlabel_suffix='log2(UMI + 1)')

Change the colors

Change the color palette with the palette keyword as with seaborn.FacetGrid:

hm.horizonplot(data=df, x='x', row='g', xlabel_suffix='log2(UMI + 1)', palette='Paired')

Change the row order

Change the row order with the row_order keyword as with seaborn.FacetGrid:

hm.horizonplot(data=df, x='x', row='g', xlabel_suffix='log2(UMI + 1)', palette='Paired', 
           row_order=list('ABCJIHDEFG'))