Learn R Programming

Guitar (version 1.10.0)

BED12toGRangesList: 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

Value

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

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.

References

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

Examples

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

Run the code above in your browser using DataLab