loadFromFiles: Load 'breakpointR' objects from file

View source: R/loadFromFiles.R

loadFromFilesR Documentation

Load breakpointR objects from file

Description

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

Usage

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

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

daewoooo/breakpointR documentation built on Aug. 4, 2022, 11:21 p.m.