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(reads, seqName = NULL, resultRJMCMC, extendingSize = 74L,
chrLength)
|
reads |
a |
seqName |
a |
resultRJMCMC |
an object of |
extendingSize |
a positive |
chrLength |
a positive |
a GRanges
, the updated nucleosome positions.
When no nucleosome is present, NULL
is returned.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Loading dataset
data(reads_demo_02)
## Nucleosome positioning, running both merge and split functions
result <- rjmcmc(reads = reads_demo_02,
seqName = "chr_SYNTHETIC", nbrIterations = 1000,
lambda = 2, kMax = 30, minInterval = 146,
maxInterval = 490, minReads = 3, vSeed = 11)
## Before post-treatment
result
##Post-treatment function which merged closely positioned nucleosomes
postResult <- postTreatment(reads = reads_demo_02,
seqName = "chr_SYNTHETIC", result, 100, 73500)
## After post-treatment
postResult
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.