PhiSpace using a single reference

PhiSpaceR_1ref(
  reference,
  query,
  phenotypes = NULL,
  response = NULL,
  PhiSpaceAssay = "rank",
  regMethod = c("PLS", "PCA"),
  ncomp = NULL,
  nfeat = NULL,
  selectedFeat = NULL,
  center = TRUE,
  scale = FALSE,
  DRinfo = FALSE,
  assay2rank = NULL
)

Arguments

reference

SCE. The reference.

query

SCE or a list of SCE. The query.

phenotypes

Charater. Which types of phenotypes to predict. If NULL, then have to specify response. Currently only support categorical phenotypes. For continuous ones, specify response directly.

response

Named matrix. Rows correspond to cells (columns) in reference; columns correspond to phenotypes. If not NULL, then will override phenotypes. Can be continuous values such as age and BMI.

PhiSpaceAssay

Character. Which assay to use to train

regMethod

Character. Regression method: one of PLS and PCA

ncomp

Integer.

nfeat

Integer.

selectedFeat

Character.

center

Logic.

scale

Logic.

DRinfo

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

assay2rank

Which assay should be used for rank transform. If not specified, "rank" will be used.

Value

A list