as.GenomicRanges: Convert a 'data.frame' representation to 'GenomicRanges'...

View source: R/utils.R

as.GenomicRangesR Documentation

Convert a data.frame representation to GenomicRanges representation

Description

Convert a data.frame representation to GenomicRanges representation

Usage

as.GenomicRanges(x, genome = NULL)

Arguments

x

An input data.frame.

Value

GenomicRanges converted from x.

Examples

dt <- read_bed(system.file("extdata", "example_merge.bed", package = "bedtorch"), 
               use_gr = FALSE, genome = "hs37-1kg")
as.GenomicRanges(dt)

haizi-zh/bedtorch documentation built on July 1, 2022, 10:40 a.m.