Learn R Programming

methylKit (version 0.99.2)

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

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

# S4 method for methylBase getTreatment(x)

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

# S4 method for methylDiff getTreatment(x)

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

# S4 method for methylRawListDB getTreatment(x)

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

# S4 method for methylBaseDB getTreatment(x)

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

# S4 method for methylDiffDB getTreatment(x)

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

Arguments

x

a methylKit object

value

a valid replacement for the treatment vector of the object

Examples

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


# }

Run the code above in your browser using DataLab