chrysalis.plot_weights
- chrysalis.plot_weights(adata: AnnData, hexcodes: Optional[List[str]] = None, seed: Optional[int] = None, compartments: Optional[List[int]] = None, ncols: int = 4, w: float = 1.0, h: float = 1.0)
Plot 20 top genes for each tissue compartment.
- Parameters:
adata – The AnnData data matrix of shape n_obs × n_vars. Rows correspond to cells and columns to genes.
hexcodes – List of hexadecimal colors to replace the default colormap.
seed – Random seed, used for mixing colors.
compartments – If None show genes for all compartments, else show genes for compartments specified in a list.
ncols – Number of subplot columns.
w – Subplot width multiplier.
h – Subplot height multiplier.