came.utils.analyze.compare_modules¶
- came.utils.analyze.compare_modules(mod_labels1, mod_labels2, df_var_links, avg_scaled: Sequence[DataFrame] | None = None, zscore_cut: float = 1.0) Mapping[str, Mapping[str, list]] ¶
Compute common and private genes (cross-species) in each gene module. If avg_scaled is provided, the module genes enriched in each cell-type will be computed and compared.
- Parameters:
mod_labels1 (pd.Series) – module labels
mod_labels2 (pd.Series) – module labels
df_var_links (pd.DataFrame) –
avg_scaled – If provided, should be a pair of DataFrame storing the average expressions for each dataset (species), and the index should be the gene names.
zscore_cut – Cut-off of expression z-scores. This will be ignored if
avg_scaled
is not provided.
- Returns:
record
- Return type:
dict of dicts