addRegionMetadata: Add regions metadata to a cisTopic object

View source: R/InitializecisTopic.R

addRegionMetadataR Documentation

Add regions metadata to a cisTopic object

Description

Add regions metadata to a given cisTopic object

Usage

addRegionMetadata(object, region.data, ...)

Arguments

object

cisTopic object

region.data

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

...

Ignored

Value

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

Examples

cisTopic_mel <- createcisTopicObject(count.matrix = count.matrix)
cisTopic_mel <- addRegionMetadata(cisTopic_mel, region.data = region.data)
cisTopic_mel


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