Prepareforpseudoregress.g: Prepareforpseudoregress.g

Description Usage Arguments Value Examples

View source: R/RePACT.R

Description

This function is to perform the initial regression to prepare the trajectory study

Usage

1
2
Prepareforpseudoregress.g(object = NULL, PCrange = 1:10,
  phenodic.use = NULL, pheno, linear = T)

Arguments

object

The seurat object for Repact study

PCrange

The PC dimensions used for modeling

phenodic.use

If there are extra data to be added, then this is a dataframe taht with one column named "Sample" for merge, also, the object@data.info has to have a column named "Sample". Otherwise, if the column for regression is already in object@data.info and phenodic.use=NULL

pheno

The column name used for modeling '@param linear If true, perform a linear regression, else, perform a logistic regression

Value

The output include: PCvariance this summrize the percentage of variance chosen PC can explain; PCanfpheno this is a data frame including PC information, phenotype information as well as pseudo.index and residues after regression; $object.raw.withinfo: this is a datafrom of raw data with pseudo.index and residues; $model: this is the model. reg.plot.2d this is the 2d regression plot. model.para: this is the regression parameter.

Examples

1
BMI.tjct.ob<-Prepareforpseudoregress.g(Beta.HSnegonly.ob,PCrange=1:10,phenodic.use=phenodic,pheno="BMI",linear=T)

chenweng1991/EZsinglecell documentation built on July 11, 2020, 3:23 p.m.