| setSignal {BindingSiteFinder} | 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)
object |
a BSFDataSet object |
... |
additional arguments |
newSignal |
list of RLE lists |
an object of type BSFDataSet with updated signal
# 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)