forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMetaFeature.Rd
46 lines (40 loc) · 1008 Bytes
/
MetaFeature.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{MetaFeature}
\alias{MetaFeature}
\title{Aggregate expression of multiple features into a single feature}
\usage{
MetaFeature(
object,
features,
meta.name = "metafeature",
cells = NULL,
assay = NULL,
slot = "data"
)
}
\arguments{
\item{object}{A Seurat object}
\item{features}{List of features to aggregate}
\item{meta.name}{Name of column in metadata to store metafeature}
\item{cells}{List of cells to use (default all cells)}
\item{assay}{Which assay to use}
\item{slot}{Which slot to take data from (default data)}
}
\value{
Returns a \code{Seurat} object with metafeature stored in objct metadata
}
\description{
Calculates relative contribution of each feature to each cell
for given set of features.
}
\examples{
data("pbmc_small")
pbmc_small <- MetaFeature(
object = pbmc_small,
features = c("LTB", "EAF2"),
meta.name = 'var.aggregate'
)
head(pbmc_small[[]])
}
\concept{utilities}