Returns top module genes from NMF feature loading matrix

getNMFGenes(feature.loading, norm.cutoff = 0.5)

Arguments

feature.loading

Matrix; m genes x n modules loading

norm.cutoff

Numeric [0,1]; cutoff to get top genes. Default is 0.5.

Author

Nicholas Mikolajewicz

Examples


# 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