| rjmcmcCHR {RJMCMCNucleosomes} | R Documentation |
Use of a fully Bayesian hierarchical model for chromosome-wide profiling of nucleosome positions based on high-throughput short-read data (MNase-Seq data). Beware that for a genome-wide profiling, each chromosome must be treated separatly. This function is optimized to run on an entire chromosome.
The function will process by splittingg the GRanges of reads
(as example, the reads from a chromosome) in a list of smaller
GRanges segments that can be run by the
rjmcmc function. All those steps are done automatically.
rjmcmcCHR(reads, seqName = NULL, zeta = 147, delta, maxLength, nbrIterations, kMax, lambda = 3, minInterval, maxInterval, minReads = 5, adaptIterationsToReads = TRUE, vSeed = -1, nbCores = 1, dirOut = "out", saveAsRDS = FALSE, saveSEG = TRUE)
reads |
a |
seqName |
a |
zeta |
a positive |
delta |
a positive |
maxLength |
a positive |
nbrIterations |
a positive |
kMax |
a positive |
lambda |
a positive |
minInterval |
a |
maxInterval |
a |
minReads |
a positive |
adaptIterationsToReads |
a |
vSeed |
a |
nbCores |
a positive |
dirOut |
a |
saveAsRDS |
a |
saveSEG |
a |
a list of class
"rjmcmcNucleosomesBeforeAndAfterPostTreatment" containing:
k a integer, the number of nucleosomes.
mu a GRanges containing the positions of the nucleosomes.
kPost a integer, the number of nucleosomes after
post-treatment and '*' as strand. The seqnames of the GRanges
correspond to the seqName input value. NA when no nucleosome
is detected.
muPost a GRanges containing the positions of the
nucleosomes after post-treament and '*' as strand. The seqnames
of the GRanges correspond to the seqName input value.
NA when no nucleosome is detected.
Pascal Belleau, Astrid Deschenes
## Load synthetic dataset of reads data(syntheticNucleosomeReads) ## Use dataset of reads to create GRanges object sampleGRanges <- GRanges(syntheticNucleosomeReads$dataIP) ## Run nucleosome detection on the entire sample ## Not run: result <- rjmcmcCHR(reads = sampleGRanges, zeta = 147, delta=50, maxLength=1200, nbrIterations = 1000, lambda = 3, kMax = 30, minInterval = 146, maxInterval = 292, minReads = 5, vSeed = 10113, nbCores = 2, saveAsRDS = FALSE) ## End(Not run)