getSampleID {methylKit} | R Documentation

## Get or Set Sample-IDs of the methylKit objects

### Description

The function returns or replaces the sample-ids stored in any of the following `methylKit` objects: `methylRaw`, `methylRawDB`, `methylBase`, `methylBaseDB`, `methylRawList`, `methylRawListDB`, `methylDiff`, `methylDiffDB`.

### Usage

    getSampleID(x)
    getSampleID(x) <- value

    getSampleID(x) <- value

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

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

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

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

    ## S4 method for signature 'methylRaw'
    getSampleID(x)

    ## S4 replacement method for signature 'methylRaw'
    getSampleID(x) <- value

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

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

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

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

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

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

    ## S4 method for signature 'methylRawDB'
    getSampleID(x)

    ## S4 replacement method for signature 'methylRawDB'
    getSampleID(x) <- value

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

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

### Arguments

`x` | an `methylBaseDB`,`methylRawListDB` or `methylDiffDB` object
`value` | a valid replacement vector for the sample-ids of the object

### Examples

    data(methylKit)

    #The Sample-Ids can be printed ..
    getSampleID(methylBase.obj)

    # .. or replaced.
    newObj <- methylBase.obj
    getSampleID(newObj) <- c("sample1","sample2","sample3","sample4")
    getSampleID(newObj)

[Package methylKit version 1.6.3 Index]