colData-scNMFSet-method: Sample annotation accessor

Description Usage Arguments Value Examples

Description

Sample annotation accessor

Usage

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

Arguments

x

Object containing sample annotation

Value

Column annotation DataFrame

Examples

1
2
3
4
5
6
7
8
9
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

ccfindR documentation built on Nov. 8, 2020, 5:12 p.m.