colData-set-scNMFSet-ANY-method: Cell annotation assignment

Description Usage Arguments Value Examples

Description

Cell annotation assignment

Usage

1
2
## 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

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

hjunwoo/ccfindR documentation built on Oct. 4, 2019, 10:31 a.m.