colData<-,scNMFSet,ANY-method {ccfindR} | R Documentation

## Cell annotation assignment

### Description

Cell annotation assignment

### Usage

    ## S4 replacement method for signature 'scNMFSet,ANY'
    colData(x) <- value

### Arguments

`x` | Object containing cell annotation
`value` | DataFrame to be substituted

### Value

Updated column annotation

### Examples

    library(S4Vectors)
    x <- matrix(rpois(n=12,lambda=3),4,3)
    rownames(x) <- seq_len(4)
    colnames(x) <- c('a','b','c')
    s <- scNMFSet(count=x,rowData=seq_len(4),colData=c('a','b','c'))
    cols <- DataFrame(tissue=c('tissue1','tissue1','tissue2'))
    rownames(cols) <- c('a','b','c')
    colData(s) <- cols
    s

[Package ccfindR version 1.10.0 Index]