predictions,Classifier-method {Allspice}R Documentation

Category predictions

Description

Classifies samples based on their profiles.

Usage

predictions(obj)

Arguments

obj

An object of the class Classifier.

Details

Use the functions covariates() and profiles() to import data into the classifier.

Value

Returns a list of data frames that contain the output from each classification asset within the classifier. See classify() for details on the result items.

Examples

# Simulated data.
simu <- bcellALL(5)

# Predict subtypes.
cls <- classifier(verbose = FALSE)
covariates(cls) <- simu$metadata
profiles(cls) <- simu$counts
pred <- predictions(cls)
print(pred[[1]][,c("LABEL","PROX","EXCL")])
print(pred[[2]][,c("LABEL","PROX","EXCL")])
print(pred[[3]][,c("LABEL","PROX","EXCL")])

[Package Allspice version 1.0.7 Index]