convertBed2Exons-methods: convert a data frame read-in from a bed file to a GRanges...

Description Usage Arguments Value Note Examples

Description

convert a data frame read-in from a bed file to a GRanges object for exons

Usage

1
2
3
4
convertBed2Exons(bed.df)

## S4 method for signature 'data.frame'
convertBed2Exons(bed.df)

Arguments

bed.df

a data.frame where column order and content resembles a bed file with 12 columns

Value

GRanges object

Note

one bed track per file is only accepted, the bed files with multiple tracks will cause en error

Examples

1
2
3
4
file = system.file('extdata/chr21.refseq.hg19.bed', package='genomation')
bed12 = read.table(file)
exons = convertBed2Exons(bed12)
head(exons)

genomation documentation built on Nov. 8, 2020, 5:21 p.m.