Given a GCT object and either a data.frame or a path to an annotation table, apply the annotations to the gct using the given keyfield.

annotate.gct(g, annot, dimension = "row", keyfield = "id")

Arguments

g

a GCT object

annot

a data.frame or path to text table of annotations

dimension

either 'row' or 'column' indicating which dimension of g to annotate

keyfield

the character name of the column in annot that matches the row or column identifiers in g

Value

a GCT object with annotations applied to the specified dimension

See also

Other GCT utilities: melt.gct(), merge.gct(), rank.gct(), subset.gct()