cast_granges: Casts genomic regions into 'GRanges' format

Description Usage Arguments Details Value Examples

View source: R/coord_ops.R

Description

Casts genomic regions into GRanges format

Usage

1
cast_granges(regions)

Arguments

regions

GRanges or data.frame; The input regions to cast to GRanges

Details

Casts the input as a GRanges object. Input can be GRanges or a data.frame-compatible class that can be cast through as.data.frame(). Input BED format must be chr-start-end for data.frame objects.

Value

GRanges object with the input regions

Examples

1
2
regions = data.table(chr = 'chr1', start = 1, end = 100)
cast_granges(regions) 

CompEpigen/scMethrix documentation built on Nov. 6, 2021, 3:09 p.m.