dandelion.tools.bin_expression

dandelion.tools.bin_expression(adata, bin_no, genes, pseudotime_col)[source]

Function to compute average gene expression in bins along pseudotime.

Parameters:
  • adata (AnnData) – cell adata.

  • bin_no (int) – number of bins to be divided along pseudotime.

  • genes (list[str]) – list of genes for the computation

  • pseudotime_col (str) – column in adata.obs where pseudotime is stored

Returns:

a data frame with genes as rows, and pseudotime bins as columns, and averaged gene expression as the data

Return type:

pd.DataFrame