profiles<-,Classifier-method {Allspice} | R Documentation |
Analyse new data using classification assets.
profiles(obj) <- value
obj |
An object of the class Classifier. |
value |
A numeric vector or a matrix where samples are organized into columns and variables into rows. |
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.
Updates the Classifier object. Any previous data are discarded.
# 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")])