getTreatment {methylKit} | R Documentation

## Get or Set treatment vector of methylKit object

### Description

The function returns or replaces the treatment vector stored in any of the following methylKit objects: `methylBase`,`methylRawList`,`methylBaseDB`, `methylRawListDB`,`methylDiff`,`methylDiffDB`.

### Usage

    getTreatment(x)
    getTreatment(x) <- value

    getTreatment(x) <- value

    ## S4 method for signature 'methylRawList'
    getTreatment(x)

    ## S4 replacement method for signature 'methylRawList'
    getTreatment(x) <- value

    ## S4 method for signature 'methylBase'
    getTreatment(x)

    ## S4 replacement method for signature 'methylBase'
    getTreatment(x) <- value

    ## S4 method for signature 'methylDiff'
    getTreatment(x)

    ## S4 replacement method for signature 'methylDiff'
    getTreatment(x) <- value

    ## S4 method for signature 'methylRawListDB'
    getTreatment(x)

    ## S4 replacement method for signature 'methylRawListDB'
    getTreatment(x) <- value

    ## S4 method for signature 'methylBaseDB'
    getTreatment(x)

    ## S4 replacement method for signature 'methylBaseDB'
    getTreatment(x) <- value

    ## S4 method for signature 'methylDiffDB'
    getTreatment(x)

    ## S4 replacement method for signature 'methylDiffDB'
    getTreatment(x) <- value

### Arguments

`x` | a `methylKit` object
`value` | a valid replacement for the treatment vector of the object

### Examples

    data(methylKit)

    # The treatment vector can be printed ..
    getTreatment(methylBase.obj)

    # .. or replaced with a new one
    newObj <- methylBase.obj
    getTreatment(newObj) <- c(1,2,3,4)
    getTreatment(newObj)

[Package methylKit version 1.16.1 Index]