Skip to contents

Convert GFF file to BED

Usage

gff2bed(gffpath = NULL)

Arguments

gffpath

Path to .gff file with genome annotation.

Value

Path to output .bed file

Examples

gff_path <- system.file("extdata", "Homo_sapiens.GRCh37.75_subset.gtf", 
                         package="bears")
gffdir <- tempdir()
file.copy(from = gff_path, to=gffdir)
#> [1] TRUE
gff_file <- list.files(gffdir, full.names=TRUE, pattern=".gtf")
gff2bed(gff_file)
#> [1] "/tmp/Rtmpz8bc7P/Homo_sapiens.GRCh37.75_subset.bed"