dandelion.tools.chatterjee_corr
- dandelion.tools.chatterjee_corr(adata, genes, pseudotime_col)[source]
Function to compute chatterjee correlation of gene expression with pseudotime.
- Parameters:
adata (AnnData) – cell adata
genes (list[str]) – List of genes selected to compute the correlation
pseudotime_col (str) – column in adata.obs where pseudotime is stored
- Returns:
a data frame with genes as rows, with cor_res (correlation statistics), pval (p-value), adj_pval (p-value adjusted by BH method) as columns.
- Return type:
pd.DataFrame