Cell2home

Project home page here

cell2home.category_pseudobulker(adata, ...)

Compute the pseudobulks of an AnnData object based on unique value combinations of specified observations.

cell2home.construct_signatures(adata, ...[, ...])

Construct a reference signature based on an AnnData object and a data frame specifying the interactions.

cell2home.compute_cell_scores(adata, signatures)

Take the query AnnData object and a set of signatures from construct_signatures(), retrieving the target gene expression for each interaction from the query and multiplying it by the source expression from the signature to obtain cell scores.

cell2home.collapse_scores(mdata, var_to_bulk)

Average out scores across unique combinations of categories from .var.

cell2home.compute_top_interactions_one_group(...)

Compute top-N ligand–receptor interactions (by mean within one cell type).

cell2home.plot_top_interactions_bar_one_group(...)

Plot a horizontal bar chart from the Series produced by compute_top_interactions_one_group.