
Get the W (gene loadings) matrix
get_w.RdGet the W (gene loadings) matrix
Usage
get_w(x)
# S3 method for class 'NmfResult'
get_w(x)
# S3 method for class 'StabilisedNmfResult'
get_w(x)
# S3 method for class 'ConsensusNmfResult'
get_w(x)Examples
# gene loadings of a five factor NMF
sc <- demo_single_cells()
res <- nmf_sc(sc, k = 5L, .verbose = FALSE)
dim(get_w(res))
#> [1] 30 5
unlink(sc@dir_data, recursive = TRUE, force = TRUE)