MethyLumiM2GenoSet: Coerce objects of MethyLumiM-class to MethyGenoSet

Description Usage Arguments Value Author(s) See Also Examples

View source: R/methyAnalysis.R

Description

Coerce objects of MethyLumiM-class to MethyGenoSet

Usage

1
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

Author(s)

Pan Du

See Also

MethyGenoSet

Examples

1
2
3
4
5
6
7
8
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)
}

methyAnalysis documentation built on Nov. 8, 2020, 8:09 p.m.