This will return indices of features among the rownames
or rowData of a data.frame, matrix, or a SummarizedExperiment
object including a SingleCellExperiment.
Partial matching (i.e. grepping) can be used by setting
exactMatch = FALSE.
featureIndex( features, inSCE, by = "rownames", exactMatch = TRUE, removeNA = FALSE, errorOnNoMatch = TRUE, warningOnPartialMatch = TRUE )
| features | Character vector of feature names to find in the rows of
|
|---|---|
| inSCE | A data.frame, matrix, or SingleCellExperiment object to search. |
| by | Character. Where to search for features in |
| exactMatch | Boolean. Whether to only identify exact matches
or to identify partial matches using |
| removeNA | Boolean. If set to |
| errorOnNoMatch | Boolean. If |
| warningOnPartialMatch | Boolean. If |
A vector of row indices for the matching features in inSCE.
'retrieveFeatureInfo' from package 'scater'
and link{regex} for how to use regular expressions when
exactMatch = FALSE.
Yusuke Koga, Joshua D. Campbell