loadFromFiles {methimpute} | R Documentation

## Load methimpute objects from file

### Description

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

### Usage

    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

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

[Package methimpute version 1.6.0 Index]