selFeatures: selFeatures

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Selects features based on cluster-wise expression or marker detection, or a combination.

Usage

1
2
3
4
5
6
7
selFeatures(
  sce,
  clusters = NULL,
  nfeatures = 1000,
  propMarkers = 0,
  FDR.max = 0.05
)

Arguments

sce

A SummarizedExperiment-class, SingleCellExperiment-class with 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).

Value

A vector of feature (i.e. row) names.

Examples

1
2
sce <- mockDoubletSCE()
selFeatures(sce, clusters=sce$cluster, nfeatures=5)

scDblFinder documentation built on Nov. 8, 2020, 5:48 p.m.