Learn R Programming

methylKit (version 0.99.2)

getSampleID: 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 methylRawList getSampleID(x)

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

# S4 method for methylBase getSampleID(x)

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

# S4 method for methylRaw getSampleID(x)

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

# S4 method for methylDiff getSampleID(x)

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

# S4 method for methylRawListDB getSampleID(x)

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

# S4 method for methylBaseDB getSampleID(x)

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

# S4 method for methylRawDB getSampleID(x)

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

# S4 method for methylDiffDB getSampleID(x)

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

Arguments

value

a valid replacement vector for the sample-ids of the object

Examples

Run this code
# NOT RUN {
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)


# }

Run the code above in your browser using DataLab