importBedFiles: importBedFiles

Description Usage Arguments Value Examples

View source: R/meta_analysis_functions.R

Description

This function is a wrapper that uses RCAS::importBed() function to import BED files as a GRangesList object

Usage

1
importBedFiles(filePaths, ...)

Arguments

filePaths

A vector of paths to one or more BED files

...

Other parameters passed to RCAS::importBed and rtracklayer::import.bed function

Value

A GRangesList object containing the coordinates of the intervals from multiple input BED files

Examples

1
2
3
4
5
6
7
8
9
input1 <- system.file("extdata", "testfile.bed", package='RCAS') 
input2 <- system.file("extdata", "testfile2.bed", package='RCAS') 
bedData <- importBedFiles(filePaths = c(input1, input2), 
keepStandardChr = TRUE) 
# when importing multiple bed files with different column names, it 
# is required to pass the common column names to be parsed from the 
# bed files
bedData <- importBedFiles(filePaths = c(input1, input2),
                 colnames = c('chrom', 'start', 'end', 'strand'))

RCAS documentation built on Nov. 8, 2020, 8:03 p.m.