Documentation#
Import scDRS as:
import scdrs
Compute scDRS score#
|
Preprocess single-cell data for scDRS analysis. |
|
Score cells based on the disease gene set. |
scDRS downstream analyses#
scDRS group-level analysis. |
|
|
scDRS cell-level correlation analysis. |
|
scDRS gene-level correlation analysis. |
Data loading#
|
Load h5ad file and optionally filter out cells and perform normalization. |
|
Load scDRS scores. |
|
Load the gene set file (.gs file). |
|
Load gene homologs between mouse and human. |
Utils#
|
Compute significance level for Geary's C statistics. |
|
Compute Geary's C statistics for an AnnData. |
|
Pearson's correlation between every columns in mat_X and mat_Y. |
|
Pearson's correlation between every columns in mat_X and mat_Y (sparse matrix) |
|
Compute gene-level and cell-level statstics used for scDRS analysis. |
|
Regress mat_X out of mat_Y. |
|
Compute mean and var of a sparse / non-sparse matrix. |
Compute mean and variance of sparse matrix of the form |