setSignal {BindingSiteFinder}R Documentation

Setter method for the signal data of the BSFDataSet object

Description

Signal data is loaded from the path specified in getMeta columns "clPlus" and "clMinus" and stored as a list of RLE lists.

Usage

setSignal(object, ...)

## S4 method for signature 'BSFDataSet'
setSignal(object, newSignal)

Arguments

object

a BSFDataSet object

...

additional arguments

newSignal

list of RLE lists

Value

an object of type BSFDataSet with updated signal

See Also

BSFDataSet

Examples


# 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)


[Package BindingSiteFinder version 0.99.10 Index]