BED12toGRangesList {Guitar} | R Documentation |
read bed12 format into R as GRangesList object
BED12toGRangesList(filepath, header)
filepath |
the path where the bed12 file is located |
header |
whether the bed12 file has header or not, default: FALSE |
The function read bed12 into R as GRangesList object, with the introns spliced out, making it different from other functions such as import.bed.
The returned GRangsList object has the same number of GRangesLists as the number of rows in the bed12 file.
Jia Meng <jia.meng@hotmail.com>
For more infomration about the bed format, please refer to: https://genome.ucsc.edu/FAQ/FAQformat.html#format1
bed12=system.file("extdata", "m6A_mm10_exomePeak_1000peaks_bed12.bed", package="Guitar") m6A_HepG2 <- BED12toGRangesList(bed12)