scdrs.method.downstream_gene_analysis#

scdrs.method.downstream_gene_analysis(adata: AnnData, df_full_score: DataFrame) DataFrame[source]#

scDRS gene-level correlation analysis.

Compute correlation between each gene and the scDRS disease score.

Parameters:
adataanndata.AnnData

Single-cell data of shape (n_cell, n_gene). Assumed to be size-factor-normalized and log1p-transformed.

df_full_scorepd.DataFrame

scDRS .full_score file for a given trait.

Returns:
df_respd.DataFrame

Correlation results (n_gene, n_stats).