basis: Basis matrices in an Object

Description Usage Arguments Details Value Examples

Description

Retrieve or set the basis matrices W from factorization in an object

Usage

1
basis(object)

Arguments

object

Object of class scNMFSet

Details

After factorization, basis matrices corresponding to each rank value are stored as elements of a list, which is in slot basis of object of class scNMFSet. basis(object) will return the list of matrices. basis(object) <- value can be used to modify it.

Value

Either NULL or a list of same length as ranks(object), whose elements are basis matrices derived from factorization under each rank value.

Examples

1
2
3
s <- scNMFSet(count=matrix(rpois(n=12,lambda=3),4,3))
s <- vb_factorize(s,ranks=seq(2,4))
basis(s)[[1]]

hjunwoo/ccfindR documentation built on July 11, 2019, 6:41 p.m.