Description Usage Arguments Value Author(s) Examples
View source: R/projectNewData.R
Projects a new dataset into the principal components obtained from a training dataset
1 2 | projectNewData(object, newData, informative = TRUE, seurat = FALSE,
returnLoadings = FALSE)
|
object |
An |
newData |
A matrix object with genes as rows and cells as columns |
informative |
Perfoms rotation using only informative principal components |
seurat |
Performs Seurat scaling? |
A data frame with the projection
Jos<c3><a9> Alquicira Hern<c3><a1>ndez
1 2 3 4 5 | # Prjects training discriminant principal axes onto test dataset.
## By setting "informative = FALSE", all principal components
## (including non-informative) are projected.
projection <- projectNewData(object, expTest, informative = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.