
Rank Genes by Correlation With a Deconvolution Subgroup
Source:R/cell_deconvolution.R
compute_data_driven_rank.RdComputes a data-driven gene ranking by correlating expression values with a selected deconvolution subgroup across matched samples.
Arguments
- res
Data frame containing at least a
genecolumn with genes to evaluate.- expr
Gene expression matrix with genes in rows and samples in columns.
- deconv
Deconvolution matrix with samples in rows and features/subgroups in columns.
- subgroup
Character scalar indicating the subgroup/feature column in
deconv.- method
Correlation method passed to
stats::cor(), typically"spearman"or"pearson".