Learn R Programming

scCustomize (version 3.0.0)

Cells_by_Identities_LIGER: Extract Cells by identity

Description

Extract all cell barcodes by identity from LIGER object

Usage

Cells_by_Identities_LIGER(liger_object, group.by = NULL, by_dataset = FALSE)

Value

list or list of lists depending on by_dataset parameter

Arguments

liger_object

LIGER object name.

group.by

name of meta data column to use, default is current default clustering.

by_dataset

logical, whether to return list with entries for cell barcodes for each identity in group.by or to return list of lists (1 entry per dataset and each ident within the dataset) (default is FALSE; return list)

Examples

Run this code
if (FALSE) {
# return single vector of all cells
cells_by_idents <- Cells_by_Identities_LIGER(liger_object = object, by_dataset = FALSE)

# return list of vectors containing cells from each individual dataset in object
cells_by_idents_by_dataset <- Cells_by_Identities_LIGER(liger_object = object, by_dataset = TRUE)
}

Run the code above in your browser using DataLab