Coerce a matrix to class ExpressionSet

Description

This function converts a data matrix into an ExpressionSet object.

Usage

1
neweS(mat, vlist, vlabel = as.list(names(vlist)))

Arguments

mat

A data matrix to be converted.

vlist

A list, each component of which describes a factor in the experimental design.

vlabel

A list of labels for each component of vlist.

Details

Each element of a component of vlist corresponds to a column of mat. See vlist for an example.

Value

eset

An ExpressionSet object.

Author(s)

David Rocke and Geun-Cheol Lee

References

http://dmrocke.ucdavis.edu

See Also

vlist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(Biobase)
library(LMGene)

#data
data(sample.mat)
data(vlist)

Smpdt <- neweS(sample.mat,vlist)

data(sample.eS)
identical(exprs(sample.eS), exprs(Smpdt))
identical(pData(sample.eS), pData(Smpdt))