loadFromFiles: Load 'AneuFinder' objects from file

Description Usage Arguments Value Examples

View source: R/loadFromFiles.R

Description

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

Usage

1
2
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

1
2
3
4
5
6
## 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')

AneuFinder documentation built on Nov. 8, 2020, 7:44 p.m.