setSignal | R Documentation |
Signal data is loaded from the path specified in getMeta
columns "clPlus" and "clMinus" and stored as a list of RLE lists.
setSignal(object, ...)
## S4 method for signature 'BSFDataSet'
setSignal(object, newSignal, dropSeqlevels = TRUE, quiet = FALSE)
object |
a BSFDataSet object |
... |
additional arguments |
newSignal |
list of RLE lists |
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 |
an object of type BSFDataSet
with updated signal
BSFDataSet
# load data
files <- system.file("extdata", package="BindingSiteFinder")
load(list.files(files, pattern = ".rda$", full.names = TRUE))
sgn = getSignal(bds)
sgn = lapply(sgn, function(selStrand){
lapply(selStrand, function(chrList){
chrList[names(chrList) == "chr22"]
})
})
bdsNew = setSignal(bds, sgn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.