MetaFeature: Aggregate expression of multiple features into a single...

View source: R/utilities.R

MetaFeatureR Documentation

Aggregate expression of multiple features into a single feature

Description

Calculates relative contribution of each feature to each cell for given set of features.

Usage

MetaFeature(
  object,
  features,
  meta.name = "metafeature",
  cells = NULL,
  assay = NULL,
  slot = "data"
)

Arguments

object

A Seurat object

features

List of features to aggregate

meta.name

Name of column in metadata to store metafeature

cells

List of cells to use (default all cells)

assay

Which assay to use

slot

Which slot to take data from (default data)

Value

Returns a Seurat object with metafeature stored in objct metadata

Examples

data("pbmc_small")
pbmc_small <- MetaFeature(
  object = pbmc_small,
  features = c("LTB", "EAF2"),
  meta.name = 'var.aggregate'
)
head(pbmc_small[[]])


Seurat documentation built on May 29, 2024, 4:20 a.m.