Extract GEP usage matrix from cNMF results
Usage
getGEPUsage(x, name = "cNMF", k = NULL)
Arguments
- x
A SingleCellExperiment object with cNMF results
- name
Character, name of the cNMF result to extract (default "cNMF")
- k
Integer, which k value to extract. If NULL, uses optimal k
Value
Matrix with cells x programs (consensus usage matrix)
Examples
# sce <- runConsensusNMF(sce, k_range = 5:10)
# usage <- getGEPUsage(sce)