
Get the index position for a gene
get_cell_indices.RdReturns the index for a given gene based on the internal gene mapping. This is used for the single cell-related classes and methods.
Usage
get_cell_indices(x, cell_ids, rust_index)
## S7 method for class <bixverse::MetaCells>
get_cell_indices(x, cell_ids, rust_index)
# S3 method for class 'ScMap'
get_cell_indices(x, cell_ids, rust_index)
## S7 method for class <bixverse::SingleCells>
get_cell_indices(x, cell_ids, rust_index)
## S7 method for class <bixverse::SingleCellsSubset>
get_cell_indices(x, cell_ids, rust_index)Examples
# R-based positions of two cells
sc <- demo_single_cells(prepped = FALSE)
get_cell_indices(sc, c("cell_001", "cell_002"), rust_index = FALSE)
#> [1] 1 2
unlink(sc@dir_data, recursive = TRUE, force = TRUE)