joinReplicates {DMRcaller} | R Documentation

## Joins together two GRange objects in a single containing all the replicates

### Description

This function joins together data that come from biological replicates to perform analysis

### Usage

    joinReplicates(methylationData1, methylationData2, usecomplete = FALSE)

### Arguments

`methylationData1` | the methylation data stored as a `GRanges` object with four metadata columns (see `methylationDataList`).
`methylationData2` | the methylation data stored as a `GRanges` object with four metadata columns (see `methylationDataList`).
`usecomplete` | Boolean, determine wheter, when the two dataset differ for number of cytosines, if the smaller dataset should be added with zero reads to match the bigger dataset.

### Value

returns a `GRanges` object containing multiple metadata columns with the reads from each object passed as parameter

### Author(s)

Alessandro Pio Greco and Nicolae Radu Zabet

### Examples

    ## Not run:
    # load the methylation data
    data(methylationDataList)

    # Joins the wildtype and the mutant in a single object
    joined_data <- joinReplicates(methylationDataList[["WT"]],
                                  methylationDataList[["met1-3"]], FALSE)

    ## End(Not run)

[Package DMRcaller version 1.14.2 Index]