modalOf: Return preset modality of a ligerDataset object or that of...

View source: R/ligerDataset-methods.R

modalOfR Documentation

Return preset modality of a ligerDataset object or that of all datasets in a liger object

Description

Return preset modality of a ligerDataset object or that of all datasets in a liger object

Usage

modalOf(object)

Arguments

object

a ligerDataset object or a liger object

Value

A single character of modality setting value for ligerDataset object, or a named vector for liger object, where the names are dataset names.

Examples

modalOf(pbmc)
ctrl <- dataset(pbmc, "ctrl")
modalOf(ctrl)
ctrl.atac <- as.ligerDataset(ctrl, modal = "atac")
modalOf(ctrl.atac)

rliger documentation built on Oct. 30, 2024, 1:07 a.m.