
Get the cell names
get_cell_names.RdReturns the cell names (usually barcodes).
Usage
get_cell_names(x, filtered = FALSE)
# S3 method for class 'ScMap'
get_cell_names(x, filtered = FALSE)
## S7 method for class <bixverse::SingleCells>
get_cell_names(x, filtered = FALSE)
## S7 method for class <bixverse::SingleCellsSubset>
get_cell_names(x, filtered = FALSE)Arguments
- x
An object to get the cell names from.
- filtered
Boolean. Shall, if found only the cell names of the
cells_to_keepbe returned (seeset_cells_to_keep(). Defaults toFALSE
Examples
# barcodes of the cells that passed quality control
sc <- demo_single_cells(prepped = FALSE)
head(get_cell_names(sc, filtered = TRUE), 3)
#> [1] "cell_001" "cell_002" "cell_003"
unlink(sc@dir_data, recursive = TRUE, force = TRUE)