importBedFiles {RCAS} | R Documentation

## importBedFiles

### Description

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

### Usage

    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

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

[Package RCAS version 1.18.0 Index]