Utility function to easily pull out the name of the class with the maximum
prediction. This is useful if you've set prediction.assay = TRUE
in
TransferData
and want to have a vector with the predicted class.
GetTransferPredictions(
object,
assay = "predictions",
slot = "data",
score.filter = 0.75
)
Seurat object
Name of the assay holding the predictions
Slot of the assay in which the prediction scores are stored
Return "Unassigned" for any cell with a score less than this value
Returns a vector of predicted class names
if (FALSE) {
prediction.assay <- TransferData(anchorset = anchors, refdata = reference$class)
query[["predictions"]] <- prediction.assay
query$predicted.id <- GetTransferPredictions(query)
}