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.
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.
annotate_eset_list(eset.list, cmap.column = "cmap", perturbation = "perturbation")
A list of eSet objects, usually generated by a call to the
The name of the pData column for eSets in 'eset.list' identifying treatment and control samples.
The character string in the 'cmap.column' of the pData column for eSets in 'eset.list' identifying perturbation associated with treated samples.
A data frame with one row for each eSet in the input 'eset.list' and all columns found in the original eSet pData slot.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.