BED12toGRangesList {Guitar} | R Documentation

## BED12toGRangesList

### Description

read bed12 format into R as GRangesList object

### Usage

    BED12toGRangesList(filepath, header)

### Arguments

`filepath` | the path where the bed12 file is located
`header` | whether the bed12 file has header or not, default: FALSE

### Details

The function read bed12 into R as GRangesList object, with the introns spliced out, making it different from other functions such as import.bed.

### Value

The returned GRangsList object has the same number of GRangesLists as the number of rows in the bed12 file.

### Author(s)

Jia Meng <jia.meng@hotmail.com>

### References

For more infomration about the bed format, please refer to: https://genome.ucsc.edu/FAQ/FAQformat.html#format1

### Examples

    bed12=system.file("extdata", "m6A_mm10_exomePeak_1000peaks_bed12.bed", package="Guitar")
    m6A_HepG2 <- BED12toGRangesList(bed12)

[Package Guitar version 1.18.0 Index]