Selects features based on cluster-wise expression or marker detection, or a combination.
Arguments
- sce
A
SummarizedExperiment-class,SingleCellExperiment-classwith a 'counts' assay.- clusters
Optional cluster assignments. Should either be a vector of labels for each cell.
- nfeatures
The number of features to select.
- propMarkers
The proportion of features to select from markers (rather than on the basis of high expression). Ignored if `clusters` isn't given.
- FDR.max
The maximum marker binom FDR to be included in the selection. (see
findMarkers).
Examples
sce <- mockDoubletSCE()
selFeatures(sce, clusters=sce$cluster, nfeatures=5)
#> [1] "gene12" "gene148" "gene69" "gene83" "gene170"