extractBinGRanges: Extract genomic ranges for a given bin

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Allfunctions.R

Description

For genomic ranges with N bins, extract the Genomic ranges for a given bin.

Usage

1
extractBinGRanges(GenoRanges, bin, nbins)

Arguments

GenoRanges

An object of class GRanges

bin

numeric; the bin corresponding to which data has to be extracted

nbins

numeric; the number of bins in which genomic regions are divided

Value

A GRanges Object

Author(s)

Mattia Pelizzola

See Also

mapBSdata2GRangesBin

Examples

1
2
3
gr_file <- system.file('extdata', 'GR_chr20.Rdata', package='methylPipe')
load(gr_file)
extractBinGRanges(GR_chr20, 2, 5)

methylPipe documentation built on Nov. 8, 2020, 6:51 p.m.