getTSRdata {TSRchitect} | R Documentation

## getTSRdata

### Description

an accessor function that retrieves the contents of a specified slot "tsrData"/"tsrDataMerged" from a given tssObject

### Usage

    getTSRdata(experimentName, slotType, slot)

    ## S4 method for signature 'tssObject,character,numeric'
    getTSRdata(experimentName,
      slotType = c("replicates", "merged"), slot)

### Arguments

`experimentName` | an S4 object of class tssObject
`slotType` | 'character' which data type is to be selected. Either "replicates" (tsrCountData) or "merged" (tsrCountDataMerged)
`slot` | 'numeric' a number corresponding to the slot in "tsrData"/"tsrDataMerged" to be retrieved.

### Value

the contents of the selected slot (either "tsrData" or "tsrDataMerged" are returned)

### Examples

    load(system.file("extdata", "tssObjectExample.RData",
    package="TSRchitect"))
    ex.tsrData <- getTSRdata(experimentName=tssObjectExample,
    slotType="replicates", slot = 1)
    ex.tsrData

[Package TSRchitect version 1.8.9 Index]