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 GRanges
containing the positions of the
nucleosomes.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Use a directory present in the RJMCMC package
directoryWithRDSFiles <- system.file("extdata",
package = "RJMCMCNucleosomes")
## 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.