| plotNucleosomes {RJMCMCNucleosomes} | R Documentation |
Generate a graph for
a GRanges or a GRangesList of nucleosome positions. In
presence of only one prediction (with multiples nucleosome positions), a
GRanges is used. In presence of more thant one predictions (as
example, before and after post-treatment or results from
different software), a GRangesList with
one entry per prediction is used. All predictions must have been obtained
using the same reads.
plotNucleosomes(nucleosomePositions, reads, seqName = NULL, xlab = "position", ylab = "coverage", names = NULL)
nucleosomePositions |
a |
reads |
a |
seqName |
a |
xlab |
a |
ylab |
a |
names |
a |
a graph containing the nucleosome positions and the read coverage
Astrid Deschenes
## Load reads dataset
data(reads_demo_01)
## Run RJMCMC method
result <- rjmcmc(reads = reads_demo_01,
seqName = "chr_SYNTHETIC",
nbrIterations = 4000, lambda = 2, kMax = 30,
minInterval = 146, maxInterval = 292, minReads = 5,
vSeed = 10213)
## Create graph using the synthetic map
plotNucleosomes(nucleosomePositions = result$mu, seqName = "chr_SYNTHETIC",
reads = reads_demo_01)