profiles<-,Classifier-method {Allspice}R Documentation

Sample data profiles

Description

Analyse new data using classification assets.

Usage

profiles(obj) <- value

Arguments

obj

An object of the class Classifier.

value

A numeric vector or a matrix where samples are organized into columns and variables into rows.

Details

If the input is a vector, the elements must be named and these names will be used to identify variables.

If the input is a matrix, it must have sample identities as column names and variables identified by row names.

Value

Updates the Classifier object. Any previous data are discarded.

Examples

# Simulated data.
simu <- bcellALL(5)

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

[Package Allspice version 1.0.5 Index]