Description Usage Arguments Value Author(s) Examples
A helper function which merges closely positioned nucleosomes to rectify the over splitting and provide a more conservative approach. Beware that each chromosome must be treated separatly.
1 2 | postTreatment(startPosForwardReads, startPosReverseReads, resultRJMCMC,
extendingSize = 74L, chrLength)
|
startPosForwardReads |
a |
startPosReverseReads |
a |
resultRJMCMC |
an object of |
extendingSize |
a positive |
chrLength |
a positive |
a array
of numeric
, the updated values of the
nucleosome positions.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Fix seed
set.seed(1132)
## Loading dataset
data(reads_demo)
## Nucleosome positioning, running both merge and split functions
result <- rjmcmc(startPosForwardReads = reads_demo$readsForward,
startPosReverseReads = reads_demo$readsReverse,
nbrIterations = 1000, lambda = 2, kMax = 30,
minInterval = 146, maxInterval = 292, minReads = 5)
## Post-treatment function which merged closely positioned nucleosomes
postResult <- postTreatment(startPosForwardReads = reads_demo$readsForward,
startPosReverseReads = reads_demo$readsReverse, result, 74, 73500)
postResult
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.