Learn R Programming

methyAnalysis (version 1.14.0)

MethyLumiM2GenoSet: Coerce objects of MethyLumiM-class to MethyGenoSet

Description

Coerce objects of MethyLumiM-class to MethyGenoSet

Usage

MethyLumiM2GenoSet(methyLumiM, lib = "FDb.InfiniumMethylation.hg19", bigMatrix=FALSE, dir.bigMatrix='.', savePrefix.bigMatrix)

Arguments

methyLumiM
a MethyLumiM object
lib
lib is a annotation library
bigMatrix
whether to save the data as BigMatrix (designed for very large dataset)
dir.bigMatrix
the parent directory to save the BigMatrix data files
savePrefix.bigMatrix
the folder name prefix of the directory to save the BigMatrix data files. The fold name will be like this: paste(savePrefix.bigMatrix, '_bigmat', sep='')

Value

a MethyGenoSet object

See Also

MethyGenoSet

Examples

Run this code

if (require(FDb.InfiniumMethylation.hg19)) {
	data(exampleMethyGenoSet)
	## set as MethyLumiM object
	methyLumiM <- as(exampleMethyGenoSet, 'MethyLumiM')
	## set back as MethyGenoSet object
	methyGenoSet <- MethyLumiM2GenoSet(methyLumiM, lib = "FDb.InfiniumMethylation.hg19")
	class(methyGenoSet)
}

Run the code above in your browser using DataLab