Learn R Programming

gCMAP (version 1.16.0)

annotate_eset_list: Function to complile a data frame with per-instance annotation for a list of eSet objects generated by the splitPerturbations function. The output can be used directly as sample.annotation for the NChannelSet function.

Description

For each eSet in the 'eset.list', the pData slot is examined. Perturbation instances are identified as a match to 'perturbation' in the 'cmap.column' of the pData slot. The first matching row is extracted and transfered into the output data.frame, which contains one row for each eSet in the 'eset.list'. Only annotation columns found in the pData slots of all eSets in the 'eset.list' are returned.

Usage

annotate_eset_list(eset.list, cmap.column = "cmap", perturbation = "perturbation")

Arguments

eset.list
A list of eSet objects, usually generated by a call to the splitPerturbations functions
cmap.column
The name of the pData column for eSets in 'eset.list' identifying treatment and control samples.
perturbation
The character string in the 'cmap.column' of the pData column for eSets in 'eset.list' identifying perturbation associated with treated samples.

Value

A data frame with one row for each eSet in the input 'eset.list' and all columns found in the original eSet pData slot.

See Also

splitPerturbations

Examples

Run this code
example( splitPerturbations )

Run the code above in your browser using DataLab