MethyLumiM2GenoSet {methyAnalysis} | R Documentation

## 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

### Author(s)

Pan Du

### See Also

`MethyGenoSet`

### Examples

    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)
    }

[Package methyAnalysis version 1.26.0 Index]