Skip to contents

Given a Seurat object and a list of feature names, this function returns features that are strongly correlated with those markers.

Usage

GetSimilarFeatures(
  srt,
  features,
  n,
  features_use = rownames(srt),
  anticorr = FALSE,
  aggregator = "sum",
  assay = "RNA",
  layer = "data"
)

Arguments

srt

Seurat object

features

A character vector; giving feature names.

n

An integer; number of results to return.

features_use

A character vector; list of features eligible to be returned.

anticorr

A logical value indicating whether to allow negatively correlated genes. Default is FALSE.

aggregator

How to combine correlations when finding similar features. Options: "sum" (default), "min" (for "and"-like filter), "max", or "mean".

assay

The assay to use. Default is "RNA".

layer

The layer to use. Default is "data".

Value

character vector.