tnsGet,TNS-method {RTNsurvival} | R Documentation

## Get information from slots in a TNS object

### Description

Get information from individual slots in a TNS object and any available results from a previous analysis.

### Usage

    ## S4 method for signature 'TNS'
    tnsGet(tns, what)

### Arguments

`tns` | A TNS object.
`what` | A string specifying what should be retrieved from the object. Options: 'status','survivalData', 'regulonActivity', 'TNI', 'para', 'kmTable', 'kmFit', 'coxTable', 'coxFit', 'kmInteractionTable', 'kmInteractionFit', 'coxInteractionTable', 'coxInteractionFit', and 'regulatoryElements'.

### Value

Content from slots in the TNS object.

### Examples

    # load survival data
    data(survival.data)

    # load TNI-object
    data(stni, package = "RTN")

    stns <- tni2tnsPreprocess(stni, survivalData = survival.data,
    keycovar = c('Grade','Age'), time = 1, event = 2)
    stns <- tnsGSEA2(stns)
    regulonActivity <- tnsGet(stns, 'regulonActivity')

[Package RTNsurvival version 1.12.2 Index]