View source: R/generateHitsCache.R
generateHitsCache | R Documentation |
Generate and attach a cache of binding factor hit positions for named binding factors on certain levels.
This is an internal function called from runLayerBinding.BSgenome
In turn it uses matchBindingFactor.BSgenome
to generate hits.
generateHitsCache(layerList, factorSet, cache.layers = NULL, verbose = FALSE)
layerList |
a |
factorSet |
a |
cache.layers |
which named layers to cache hits on (default NULL) |
verbose |
give more output |
"LayerList"
runLayerBinding.BSgenome
matchBindingFactor.BSgenome
require(Biostrings)
require(BSgenome.Scerevisiae.UCSC.sacCer3)
genome <- BSgenome.Scerevisiae.UCSC.sacCer3 # for convenience
scLayerSet <- createLayerSet.BSgenome(genome=genome, n.layers = 5, verbose=TRUE)
testFactor3 <- createBindingFactor.DNA_motif("test", patternString="ACTGGGCTA", profile.layers = c("LAYER.1", "LAYER.3"), profile.marks = c(0,0),
mod.layers = c("LAYER.2", "LAYER.4"), mod.marks=c(0,1))
generateHitsCache(layerList=scLayerSet, factorSet=list(testFactor3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.