Description Usage Arguments Value Author(s) Examples
View source: R/rjmcmcMethodsIntern.R
Run rjmcmc
on a segment that is contained
in a list
of segments. Files generated by the function are all saved
in a directory specified by user. A RData log file is created when a
segment has been run while the result is saved in a RDS file.
If the same output directory is used more than once, the
rjmcmc
won't be called for segments that have the <c3><a0>
corresponding RData log file.
1 2 |
p |
a |
seg |
a |
niter |
a positive |
lambda |
a positive |
minReads |
a positive |
adaptNbrIterations |
a |
vSeed |
a |
saveAsRDS |
a |
kMax |
a positive |
minInterval |
a |
maxInterval |
a |
maxLength |
a positive |
0.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Load synthetic dataset of reads
data(syntheticNucleosomeReads)
## Use dataset of reads to create GRanges object
sampleGRanges <- GRanges(seqnames = syntheticNucleosomeReads$dataIP$chr,
ranges = IRanges(start = syntheticNucleosomeReads$dataIP$start,
end = syntheticNucleosomeReads$dataIP$end),
strand = syntheticNucleosomeReads$dataIP$strand)
# Segmentation of the reads
seg <- segmentation(sampleGRanges, zeta = 147, delta = 50, maxLength = 1000)
## Not run:
dir.create("out")
dir.create("out/done")
dir.create("out/results")
runCHR(p=1, seg=seg, niter=1000, kmax=330,lambda=3,
ecartmin=147, ecartmax=297, minReads=5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.