Skip to contents

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      stim 
#> "default" "default" 
ctrl <- dataset(pbmc, "ctrl")
modalOf(ctrl)
#> [1] "default"
ctrl.atac <- as.ligerDataset(ctrl, modal = "atac")
modalOf(ctrl.atac)
#> [1] "atac"