Learn R Programming

scCustomize (version 3.0.0)

Features.liger: Extract Features from LIGER Object

Description

Extract all unique features from LIGER object

Usage

# S3 method for liger
Features(x, by_dataset = FALSE, ...)

Value

vector or list depending on by_dataset parameter

Arguments

x

LIGER object name.

by_dataset

logical, whether to return list with vector of features for each dataset in LIGER object or to return single vector of unique features across all datasets in object (default is FALSE; return vector of unique features)

...

Arguments passed to other methods

Examples

Run this code
if (FALSE) {
# return single vector of all unique features
all_features <- Features(x = object, by_dataset = FALSE)

# return list of vectors containing features from each individual dataset in object
dataset_features <- Features(x = object, by_dataset = TRUE)
}

Run the code above in your browser using DataLab