mergeAllRDSFilesFromDirectory: Merge nucleosome information from all RDS files present in a...

Description Usage Arguments Value Author(s) Examples

Description

Merge nucleosome information, from all RDS files present in a same directory, into one object of class "rjmcmcNucleosomesMerge".

Usage

1

Arguments

directory

a character, the name of the directory (relative or absolute path) containing RDS files. The RDS files must contain R object of class "rjmcmcNucleosomes" or "rjmcmcNucleosomesMerge".

Value

a list of class "rjmcmcNucleosomesMerge" containing:

Author(s)

Pascal Belleau, Astrid DeschĂȘnes

Examples

 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)

ArnaudDroitLab/RJMCMC documentation built on May 5, 2019, 7:06 a.m.