retrieveSCEIndex {singleCellTK} | R Documentation |
Originally written in retrieveFeatureIndex
.
Modified for also retrieving cell indices and only working for
SingleCellExperiment object. This will return indices of
features among the rowData
/colData
. Partial matching (i.e.
grepping) can be used.
retrieveSCEIndex( inSCE, IDs, axis, by = NULL, exactMatch = TRUE, firstMatch = TRUE )
inSCE |
Input SingleCellExperiment object. Required |
IDs |
Character vector of identifiers for features or cells to find in
|
axis |
A character scalar to specify whether to search for features or
cells. Use |
by |
Character. In which column to search for features/cells in
|
exactMatch |
A logical scalar. Whether to only identify exact matches
or to identify partial matches using |
firstMatch |
A logical scalar. Whether to only identify the first
matches or to return all plausible matches. Default |
A unique, non-NA numeric vector of indices for the matching
features/cells in inSCE
.
Yusuke Koga, Joshua Campbell
data(scExample, package = "singleCellTK") retrieveSCEIndex(inSCE = sce, IDs = "ENSG00000205542", axis = "row")