forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGetTransferPredictions.Rd
39 lines (36 loc) · 1.06 KB
/
GetTransferPredictions.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/integration.R
\name{GetTransferPredictions}
\alias{GetTransferPredictions}
\title{Get the predicted identity}
\usage{
GetTransferPredictions(
object,
assay = "predictions",
slot = "data",
score.filter = 0.75
)
}
\arguments{
\item{object}{Seurat object}
\item{assay}{Name of the assay holding the predictions}
\item{slot}{Slot of the assay in which the prediction scores are stored}
\item{score.filter}{Return "Unassigned" for any cell with a score less than
this value}
}
\value{
Returns a vector of predicted class names
}
\description{
Utility function to easily pull out the name of the class with the maximum
prediction. This is useful if you've set \code{prediction.assay = TRUE} in
\code{\link{TransferData}} and want to have a vector with the predicted class.
}
\examples{
\dontrun{
prediction.assay <- TransferData(anchorset = anchors, refdata = reference$class)
query[["predictions"]] <- prediction.assay
query$predicted.id <- GetTransferPredictions(query)
}
}
\concept{integration}