loadFromFiles: Load 'breakpointR' objects from file

Description Usage Arguments Value Examples

View source: R/loadFromFiles.R

Description

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

Usage

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

Arguments

files

A list of GRanges-class or BreakPoint objects or a vector of files that contain such objects.

check.class

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

Value

A list of GRanges-class or BreakPoint objects.

Examples

1
2
3
4
5
## Get some files that you want to load
exampleFolder <- system.file("extdata", "example_results", package="breakpointRdata")
exampleFiles <- list.files(exampleFolder, full.names=TRUE)
## Load the processed data                          
breakpoint.objects <- loadFromFiles(exampleFiles)

breakpointR documentation built on Nov. 8, 2020, 8:04 p.m.