Merge: Merge microarray data sets

Description Usage Arguments Details Value Author(s) Examples

View source: R/merge.R

Description

Merge microarray data sets in possibly irregular order.

Usage

1

Arguments

datasets

a list of gene expression matrice or list of Study. object. Each row of the matrix ([email protected][[i]]) is for one gene, each column is for one sample. The row names are gene symbols.

name

The name od the Study object that will be returened

Details

The gene expression data sets may be in possibly irregular order with different numbers of genes. This function is used to extract the common genes across studies. The merged data sets have the same genes in the same order.

Value

If dataset is a list of gene expression matrice, it returns a list of gene expression matrice after merging. Each matrix is for one study. Each row of the matrix is for one gene and each column is for one sample. The row names are gene symbols. If dataset is a list of Study object, it returns a Study object with multiple study type, and datasets would be a list of gene expression matrice after merging, clinicals would be a list of clinical data after merging.

Author(s)

Lin Wang, Schwannden Kuo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(datasets.eg)
data(preproc.option)
SinglePreproc <- function(x) {
  x <- Annotate(dataset=x, id.type=ID.TYPE.probeID, platform=PLATFORM.hgu133plus2)
  x <- Impute(dataset=x)
  x <- PoolReplicate(dataset=x)
}
# Merge for list of expression matrix
datasets.eg <- lapply(datasets.eg, SinglePreproc)
res <- Merge(datasets=datasets.eg)
# Merge for list of Study
studies <- lapply(datasets.eg, function(dataset) {
             new("Study", name="test", dtype=DTYPE.microarray, datasets=list(dataset))
           })
res <- Merge(datasets=studies, name="mergedStudy")

metaOmic/preproc documentation built on April 10, 2018, 1:25 a.m.