Learn R Programming

Allspice (version 1.0.7)

scores,Classifier-method: Category scores

Description

Classification scores for samples based on their profiles.

Usage

scores(obj)

Value

Returns a list of data frames that contain the output from each classification asset within the classifier.

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
z <- scores(cls)
print(z[[1]][,1:5])
print(z[[2]][,1:5])
print(z[[3]][,1:5])

Run the code above in your browser using DataLab