trainDataProc: trainDataProc Data preprocessing

View source: R/dataProc.R

trainDataProcR Documentation

trainDataProc Data preprocessing

Description

trainDataProc Data preprocessing

Usage

trainDataProc(Xmat, Yvec, subtype = 1, ptail = 0.01, breakVec = c(0,
  0.25, 0.5, 0.75, 1))

Arguments

Xmat

Matrix of gene expression, samples in columns, genes in rows

Yvec

Vector of phenotype, strings, 1, 2, etc

subtype

cluster name, string '1', as in Yvec

ptail

Binary phenotype vector.

breakVec

vector of break points, used to bin expression data

testRes

List of previously calculated test results, from testFun(.)

Value

List of Xbin and Ybin, the binned, subset, and binarized values.

Examples

mod1 <- trainDataProc(Xmat, Yvec, ptail, cluster, breakVec==c(0, 0.25, 0.5, 0.75, 0.85, 1.0))


CRI-iAtlas/ImmuneSubtypeClassifier documentation built on Oct. 1, 2022, 10:50 a.m.