getNMFGenes.Rd
Returns top module genes from NMF feature loading matrix
getNMFGenes(feature.loading, norm.cutoff = 0.5)
Matrix; m genes x n modules loading
Numeric [0,1]; cutoff to get top genes. Default is 0.5.
# get feature loading matrix (W matrix)
nmf.kme <- as.matrix(so.query@misc[["nmf"]][["nmf"]][["W"]])
#> Error in as.matrix(so.query@misc[["nmf"]][["nmf"]][["W"]]): object 'so.query' not found
# get module genes
nmf.module.genes <- getNMFGenes((nmf.kme), norm.cutoff = (1/ncol(nmf.kme)) + .25)
#> Error in "matrix" %in% class(feature.loading): object 'nmf.kme' not found