phenoData {Biobase}R Documentation

Class For Patient or Experiment Level Data


The class consists of a data.frame and some accompanying methods suited to handle patient level data for microarrays.

Creating Objects

new('phenoData', pData = [data.frame], varLabels = [list], varMetadata = [data.frame])


Object of class 'data.frame'. The data.
Object of class 'list'. Obtional long labels for the different variables.
Object of class 'data.frame'. A data frame with a column named varNames and arbitrarily many additional columns.


Class-specific methods:

addVarMetadataEntry(phenoData, character, character, ANY)
Not documented: FIXME: it should be a replace method, otherwise it is not clear how should it work
combine(phenoData, phenoData)
Combines several instances into a single 'phenoData' instance. See combine
Not documented
getVarMetadata(phenoData, character, character) or getVarMetadata(phenoData, character, missing)
Not documented
getUnits(phenoData, character
Not documented
pData(phenoData), pData(phenoData)<-
Get/set methods for slot pData
A replacement method for the phenoData slot
split(phenoData, vector)
FIXME: there is no implementation!!! A method to split pData and return a list of phenoData objects. Unlike split this function requires the number of rows of pData to be a multiple of the length of vector
A method to display the variable labels.
Not documented

Standard methods defined for 'phenoData':

$(name), $(name, value)<-
An old-style method to get and set. It is pData(object)[[as.character(val)]] which does not quite have the right semantics but it is close. This operator extracts the named component of the pData slot in phenoData.
A subset operator
[[(phenoData), [[(phenoData)<-
A get/set subset operator
Displays the data in a readable manner

Functions defined in Biobase to operate with 'phenoData' instances include:

df2pD(x, varLabels, varMetadata)
Function to coerce from a data.frame to a phenoData object. Here x is the data.frame to be coerced; varLabels is a character describing each of the columns in x and varMetadata is a more extensive descriptions of the variables in x, including units of measurement etc
See help on read.phenoData

See Also

read.phenoData, combine


pes <- phenoData(eset)
pes <- convertVarLabels(pes)
pes <- addVarMetadataEntry(pes, "cov1", "units", "inches")
getUnits(pes, "cov1")

   # example for 'df2pD'
   d1 = df2pD(cars)

[Package Biobase version 1.8.0 Index]