Sort features (typically genes) using Pearson correlation.

sort_features(x, ...)

# S3 method for Seurat
sort_features(
  x,
  features = NULL,
  method = "pearson",
  slot = "data",
  assay = NULL,
  ...
)

# S3 method for SingleCellExperiment
sort_features(x, features = NULL, method = "pearson", assay = NULL, ...)

# S3 method for matrix
sort_features(x, method = "pearson", ...)

Arguments

x

an object with features to sort.

...

rguments passed down to methods.

features

a character vector of features to sort.

method

method to be used for sortening.

slot

the slot to obtain the data from.

assay

the assay to obtain the data from.