setSignal: Setter method for the signal data of the BSFDataSet object

setSignalR 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, dropSeqlevels = TRUE, quiet = FALSE)

Arguments

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 coverageOverRanges

quiet

logical; whether to print messages

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)


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