convertBed2Introns {genomation} | R Documentation |
convert a data frame read-in from a bed file to a GRanges object for introns
convertBed2Introns(bed.df) ## S4 method for signature 'data.frame' convertBed2Introns(bed.df)
bed.df |
a data.frame where column order and content resembles a bed file with 12 columns |
GRanges
object
one bed track per file is only accepted, the bed files with multiple tracks will cause en error
file = system.file('extdata/chr21.refseq.hg19.bed', package='genomation') bed12 = read.table(file) introns = convertBed2Introns(bed12) head(introns)