addCellMetadata: Add cells metadata to a cisTopic object

View source: R/InitializecisTopic.R

addCellMetadataR Documentation

Add cells metadata to a cisTopic object

Description

Add cells metadata to a given cisTopic object

Usage

addCellMetadata(object, cell.data, ...)

Arguments

object

cisTopic object

cell.data

Additional metadata to add to the cisTopic object. It should be a data frame were the rows are cells and the columns data fields. All cells included in the cisTopic object must be included in this dataframe (additional cells will be ignored).

...

Ignored

Value

Returns a cisTopic object with the new data added in object@cell.data.

Examples

cisTopic_mel <- createcisTopicObject(count.matrix = count.matrix)
cisTopic_mel <- addCellMetadata(cisTopic_mel, cell.data = cell.data)
cisTopic_mel


aertslab/cisTopic documentation built on April 6, 2024, 9:31 p.m.