Description Usage Arguments Value Author(s) Examples
Merge nucleosome information, from all RDS files present
in a same directory, into one
object of class
"rjmcmcNucleosomesMerge".
1 | mergeAllRDSFilesFromDirectory(directory)
|
directory |
a |
a list
of class
"rjmcmcNucleosomesMerge" containing:
k a integer
, the number of nucleosomes.
mu a vector
of numeric
of length
k
, the positions of the nucleosomes.
sigmaf a vector
of numeric
of length
k
, the variance of the forward reads for each nucleosome.
sigmar a vector
of numeric
of length
k
, the variance of the reverse reads for each nucleosome.
delta a vector
of numeric
of length
k
, the distance between the maxima of the forward and
reverse reads position densities for each nucleosome.
Pascal Belleau, Astrid DeschĂȘnes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Use a directory present in the RJMCMC package
directoryWithRDSFiles <- system.file("extdata", package = "RJMCMC")
## Merge nucleosomes info from RDS files present in directory
## It is assumed that all files present in the directory are nucleosomes
## result for the same chromosome
result <- mergeAllRDSFilesFromDirectory(directoryWithRDSFiles)
## Print the number and the position of the nucleosomes
result$k
result$mu
## Class of the output object
class(result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.