mergeSampleData {TSRchitect} | R Documentation

## mergeSampleData

### Description

`mergeSampleData` combines samples from multiple TSS experiments into a single GRanges object

### Usage

    mergeSampleData(experimentName, n.cores, tagCountThreshold)

    ## S4 method for signature 'tssObject,numeric,numeric'
    mergeSampleData(experimentName,
      n.cores = 1, tagCountThreshold = 1)

### Arguments

`experimentName` | an S4 object of class tssObject that contains information about the experiment.
`n.cores` | the number of cores to be used for this job. ncores=1 means serial execution of function calls (numeric)
`tagCountThreshold` | the number of TSSs required at a given position for it to be considered in sample data merging. (numeric) Note: Merged data sets can become very large when the tagCountThreshold is set low (leading to inclusion of a lot of "noise" and resulting in long execution times in the necessary TSS position ordering step).

### Value

tssCountData datasets are merged (according to the sampleIDs) and put in the tssCountDataMerged slot in the returned tssObject.

### Note

An example similar to the one provided can be found in the vignette (/inst/doc/TSRchitect.Rmd).

### Examples

    load(system.file("extdata", "tssObjectExample.RData",
    package="TSRchitect"))
    tssObjectExample <- mergeSampleData(experimentName=tssObjectExample,
                                        n.cores=1, tagCountThreshold=1)

[Package TSRchitect version 1.10.12 Index]