Compute regression model using selected features.

SuperPC(
  reference,
  YY,
  ncomp,
  selectedFeat = NULL,
  assayName = "logcounts",
  regMethod = c("PCA", "PLS"),
  center = TRUE,
  scale = FALSE,
  sparse = TRUE,
  DRinfo = FALSE
)

Arguments

reference

SingleCellExperiment object. The reference

YY

Resonse matrix

ncomp

Integer. Number of components

selectedFeat

Character. Vector containing selected feature names

assayName

Which assay in reference to use for prediction

regMethod

Character. Regression method to use, either PCA or PLS.

center

Logic.

scale

Logic. Scale the predictor matrix or not

sparse

Use sparse matrices or not.

DRinfo

Logic. Whether to return dimension reduction information from PCA or PLS. Disable to save memory.

Value

A list containing regression input and output.