Learn R Programming

LMGene (version 2.28.0)

neweS: Coerce a matrix to class ExpressionSet

Description

This function converts a data matrix into an ExpressionSet object.

Usage

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.

Value

eset
An ExpressionSet object.

Details

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

References

http://dmrocke.ucdavis.edu

See Also

vlist

Examples

Run this code
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))

Run the code above in your browser using DataLab