mergeRDSFiles {RJMCMCNucleosomes} | R Documentation

## Merge nucleosome information from selected RDS files.

### Description

Merge nucleosome information present in RDS files into one object of `class` "rjmcmcNucleosomesMerge".

### Usage

    mergeRDSFiles(RDSFiles)

### Arguments

`RDSFiles` | a `array`, the names of all RDS used to merge nucleosome information. The files must contain R object of `class` "rjmcmcNucleosomes" or "rjmcmcNucleosomesMerge".

### Value

a `list` of `class` "rjmcmcNucleosomesMerge" containing:

- k a `integer`, the number of nucleosomes.

- `mu` a `GRanges` containing the positions of the nucleosomes.

### Author(s)

Pascal Belleau, Astrid Deschenes

### Examples

    ## Use RDS files present in the RJMCMC package
    RDSFiles <- dir(system.file("extdata", package = "RJMCMCNucleosomes"),
    full.names = TRUE, pattern = "*RDS")

    ## Merge nucleosomes info from RDS files present in directory
    result <- mergeRDSFiles(RDSFiles)

    ## Print the number and the position of the nucleosomes
    result$k
    result$mu

    ## Class of the output object
    class(result)

[Package RJMCMCNucleosomes version 1.14.0 Index]