convertBed2Introns {genomation} | R Documentation

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

### Description

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

### Usage

    convertBed2Introns(bed.df)

    ## S4 method for signature 'data.frame'
    convertBed2Introns(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

    file = system.file('extdata/chr21.refseq.hg19.bed', package='genomation')
    bed12 = read.table(file)
    introns = convertBed2Introns(bed12)
    head(introns)

[Package genomation version 1.12.0 Index]