Learn R Programming

Allspice (version 1.0.7)

predictions,Classifier-method: Category predictions

Description

Classifies samples based on their profiles.

Usage

predictions(obj)

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.

Arguments

obj

An object of the class Classifier.

Details

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

Examples

Run this code
# 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")])

Run the code above in your browser using DataLab