Learn R Programming

DGEobj (version 1.0.1)

annotateDGEobj: Add annotations

Description

Reads an annotation file of key/value pairs or a named list and attaches them attributes to a DGEobj. If a file is used, it should be a text file containing key/value pairs separated by an equals sign. The keys parameter specifies which key we want to capture as attributes on the DGEobj. The value will then be the value of that attribute.

Usage

annotateDGEobj(dgeObj, annotations, keys = NULL)

Arguments

dgeObj

A class DGEobj created by function initDGEobj()

annotations

Either A character string path to a file with annotations given as key/value pairs separated by an equal sign, or a named list of key/value pairs

keys

A subset of keys to look for in the annotations and transfer to the DGEobj (default = NULL)

Value

A DGEobj

Examples

Run this code
# NOT RUN {
   MyDgeObj <- annotateDGEobj(DGEobj, annotations)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab