powered by
Calculates relative contribution of each feature to each cell for given set of features.
MetaFeature(object, features, meta.name = "metafeature", cells = NULL, assay = NULL, slot = "data")
A Seurat object
List of features to aggregate
Name of column in metadata to store metafeature
List of cells to use (default all cells)
Which assay to use
Which slot to take data from (default data)
Returns a Seurat object with metafeature stored in objct metadata
Seurat
# NOT RUN { pbmc_small <- MetaFeature( object = pbmc_small, features = c("LTB", "EAF2"), meta.name = 'var.aggregate' ) head(pbmc_small[[]]) # }
Run the code above in your browser using DataLab