loadFromFiles: Load 'methimpute' objects from file

Description Usage Arguments Value Examples

View source: R/loadFromFiles.R

Description

Wrapper to load methimpute objects from file and check the class of the loaded objects.

Usage

1
loadFromFiles(files, check.class = c("GRanges", "methimputeBinomialHMM"))

Arguments

files

A list of GRanges-class or methimputeBinomialHMM objects or a character vector with files that contain such objects.

check.class

Any combination of c('GRanges', 'methimputeBinomialHMM'). If any of the loaded objects does not belong to the specified class, an error is thrown.

Value

A list of GRanges-class or methimputeBinomialHMM objects.

Examples

1
2
3
4
5
6
## Get some files that you want to load
file <- system.file("data","arabidopsis_toydata.RData",
                    package="methimpute")
## Load and print
data <- loadFromFiles(file)
print(data)

methimpute documentation built on Nov. 8, 2020, 5:47 p.m.