setRanges | R Documentation |
Setter method for the ranges of the BSFDataSet object The GRanges object that holds the genomic ranges information can be replaced.
setRanges(object, ...)
## S4 method for signature 'BSFDataSet'
setRanges(object, newRanges, dropSeqlevels = TRUE, quiet = FALSE)
object |
a |
... |
additional arguments |
newRanges |
an object of type |
dropSeqlevels |
enforce seqnames to be the same in ranges and signal,
by dropping unused seqlevels which is required for most downstream functions
such as |
quiet |
logical; whether to print messages |
object of type BSFDataSet
with updated ranges
BSFDataSet
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.