forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCollapseSpeciesExpressionMatrix.Rd
43 lines (39 loc) · 1.48 KB
/
CollapseSpeciesExpressionMatrix.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{CollapseSpeciesExpressionMatrix}
\alias{CollapseSpeciesExpressionMatrix}
\title{Slim down a multi-species expression matrix, when only one species is primarily of interenst.}
\usage{
CollapseSpeciesExpressionMatrix(
object,
prefix = "HUMAN_",
controls = "MOUSE_",
ncontrols = 100
)
}
\arguments{
\item{object}{A UMI count matrix. Should contain rownames that start with
the ensuing arguments prefix.1 or prefix.2}
\item{prefix}{The prefix denoting rownames for the species of interest.
Default is "HUMAN_". These rownames will have this prefix removed in the returned matrix.}
\item{controls}{The prefix denoting rownames for the species of 'negative
control' cells. Default is "MOUSE_".}
\item{ncontrols}{How many of the most highly expressed (average) negative
control features (by default, 100 mouse genes), should be kept? All other
rownames starting with prefix.2 are discarded.}
}
\value{
A UMI count matrix. Rownames that started with \code{prefix} have this
prefix discarded. For rownames starting with \code{controls}, only the
\code{ncontrols} most highly expressed features are kept, and the
prefix is kept. All other rows are retained.
}
\description{
Valuable for CITE-seq analyses, where we typically spike in rare populations of 'negative control' cells from a different species.
}
\examples{
\dontrun{
cbmc.rna.collapsed <- CollapseSpeciesExpressionMatrix(cbmc.rna)
}
}
\concept{utilities}