Bed2Range {customProDB} | R Documentation |
Read BED file into a GRanges object. This function requires complete BED file. Go to https://genome.ucsc.edu/FAQ/FAQformat.html#format1 for more information about BED format.
Bed2Range(bedfile, skip = 1, covfilter = 5, ...)
bedfile |
a character contains the path and name of a BED file. |
skip |
the number of lines of the BED file to skip before beginning to read data, default 1. |
covfilter |
the number of minimum coverage for the candidate junction, default 5. |
... |
additional arguments |
Read BED file contain junctions into a GRanges object.
a GRanges object containing all candidate junctions from the BED file.
Xiaojing Wang
bedfile <- system.file("extdata/beds", "junctions1.bed", package="customProDB") jun <- Bed2Range(bedfile, skip=1,covfilter=5) length(jun)