Learn R Programming

SeuratObject (version 5.2.0)

.GetConsensusFeatures: Returns the most frequently observed features in `features_by_layer`. If two features are observed at the same frequency their median index will be used to break the tie. If `nfeatures` is not specified, all features in `common_features` are returned.

Description

Returns the most frequently observed features in `features_by_layer`. If two features are observed at the same frequency their median index will be used to break the tie. If `nfeatures` is not specified, all features in `common_features` are returned.

Usage

.GetConsensusFeatures(features_by_layer, common_features, nfeatures = NULL)

Arguments

features_by_layer

A 2D named vector containing mapping each layer to it's corresponding variable features.

common_features

The intersection of features across all layers.

nfeatures

The number of variable features to return.