homogenizeData: Take two expression matrices and return homogenized versions...

Description Usage Arguments Value Author(s)

View source: R/pRRophetic.R

Description

This function accepts two expression matrices, with gene ids as rownames() and sample ids as colnames(). It will deal with duplicate gene ids. subset and order the matrices correctly. and perform homogenize the data using whatever method is specified (by default Combat from the sva library).

Usage

1
2
3
4
5
6
7
homogenizeData(
  testExprMat,
  trainExprMat,
  batchCorrect = "eb",
  selection = -1,
  printOutput = TRUE
)

Arguments

testExprMat

Gene expression matrix for samples on which we wish to predict a phenotype. Gene names as rows, samples names as columns.

trainExprMat

Gene expression matrix for samples for which we the phenotype is already known.

batchCorrect

The type of batch correction to be used. Options are "eb" for Combat, "none", or "qn" for quantile normalization.

selection

parameter can be used to specify how duplicates are handled, by default value -1 means ask the user. 1 means summarize duplictes by their mean and 2 means to disguard all duplicate genes.

printOutput

Set to FALSE to supress output

Value

a list containing two entries $train and $test, which are the homogenized input matrices.

Author(s)

Paul Geeleher, Nancy Cox, R. Stephanie Huang


xlucpu/MOVICS documentation built on July 24, 2021, 9:23 p.m.