loadFromFiles {AneuFinder} | R Documentation

## Load AneuFinder objects from file

### Description

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

### Usage

    loadFromFiles(files, check.class = c("GRanges", "GRangesList", "aneuHMM",
      "aneuBiHMM"))

### Arguments

`files` | A list of `GRanges-class`, `GRangesList`, `aneuHMM` or `aneuBiHMM` objects or a character vector with files that contain such objects.
`check.class` | Any combination of `c('GRanges', 'GRangesList', 'aneuHMM', 'aneuBiHMM')`. If any of the loaded objects does not belong to the specified class, an error is thrown.

### Value

A list of `GRanges-class`, `GRangesList`, `aneuHMM` or `aneuBiHMM` objects.

### Examples

    ## Get some files that you want to load
    folder <- system.file("extdata", "primary-lung", "hmms", package="AneuFinderData")
    files <- list.files(folder, full.names=TRUE)
    ## Load and plot the first ten
    hmms <- loadFromFiles(files[1:10])
    lapply(hmms, plot, type='profile')

[Package AneuFinder version 1.10.2 Index]