setRanges: Setter method for the ranges of the BSFDataSet object The...

setRangesR Documentation

Setter method for the ranges of the BSFDataSet object The GRanges object that holds the genomic ranges information can be replaced.

Description

Setter method for the ranges of the BSFDataSet object The GRanges object that holds the genomic ranges information can be replaced.

Usage

setRanges(object, ...)

## S4 method for signature 'BSFDataSet'
setRanges(object, newRanges, dropSeqlevels = TRUE, quiet = FALSE)

Arguments

object

a BSFDataSet object

...

additional arguments

newRanges

an object of type GRanges

dropSeqlevels

enforce seqnames to be the same in ranges and signal, by dropping unused seqlevels which is required for most downstream functions such as coverageOverRanges

quiet

logical; whether to print messages

Value

object of type BSFDataSet with updated ranges

See Also

BSFDataSet

Examples


# load data
files <- system.file("extdata", package="BindingSiteFinder")
load(list.files(files, pattern = ".rda$", full.names = TRUE))

rng = getRanges(bds)
rng = rng + 10
bdsNew = setRanges(bds, rng)


ZarnackGroup/BindingSiteFinder documentation built on May 31, 2024, 3:29 a.m.