calculateSignalToFlankScore | R Documentation |
This function calculates the signal-to-flank ratio for all present binding sites.
calculateSignalToFlankScore(
object,
flank = c("bs", "manual"),
flank.size = NULL,
quiet = FALSE
)
object |
a BSFDataSet object |
flank |
character; how the flanking region shoule be set. Options are 'bs', 'manual' |
flank.size |
numeric; if flank='manual' provide the desired flanking size |
quiet |
logical; whether to print messages |
Each input range is treated as a binding site. For a particular binding site all overlapping crosslinks are summed up and divided by the normalized sum of the crosslinks in the two adjecent regions of the same size. This is done for all bining sites and the ratio is reported as a score.
The function is part of the standard workflow performed by BSFind
.
an object of class BSFDataSet
with signal-to-flank ratios
added to the meta column of the ranges.
BSFind
, bindingSiteDefinednessPlot
# load clip data
files <- system.file("extdata", package="BindingSiteFinder")
load(list.files(files, pattern = ".rda$", full.names = TRUE))
bds = makeBindingSites(bds, bsSize = 5)
bds = calculateSignalToFlankScore(bds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.