Cells: Extract Cells from LIGER Object

Cells.ligerR Documentation

Extract Cells from LIGER Object

Description

Extract all cell barcodes from LIGER object

Usage

## S3 method for class 'liger'
Cells(x, by_dataset = FALSE, ...)

Arguments

x

LIGER object name.

by_dataset

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

...

Arguments passed to other methods

Value

vector or list depending on by_dataset parameter

Examples

## Not run: 
# return single vector of all cells
all_features <- Cells(x = object, by_dataset = FALSE)

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

## End(Not run)


samuel-marsh/scCustomize documentation built on Dec. 20, 2024, 7:41 a.m.