colData,scNMFSet-method {ccfindR} | R Documentation

## Sample annotation accessor

### Description

Sample annotation accessor

### Usage

    ## S4 method for signature 'scNMFSet'
    colData(x)

### Arguments

`x` | Object containing sample annotation

### Value

Column annotation DataFrame

### 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.6.0 Index]