basis<-,scNMFSet-method {ccfindR} | R Documentation

## Modify basis matrices

### Description

Access and modify basis matrices

### Usage

    ## S4 replacement method for signature 'scNMFSet'
    basis(object) <- value

### Arguments

`object` | Object of class `scNMFSet`
`value` | Basis matrix to be substituted

### Value

Input object with updated basis matrices

### Examples

    set.seed(1)
    s <- scNMFSet(count=matrix(rpois(n=12,lambda=3),4,3))
    s <- vb_factorize(s, ranks=3)
    basis(s)[[1]] <- apply(basis(s)[[1]],c(1,2),round,digits=3)
    basis(s)

[Package ccfindR version 1.4.2 Index]