Bimap-colmethods {AnnotationDbi}R Documentation

Methods for manipulating the col names of a Bimap object

Description

These methods are part of the Bimap interface.

They are accessor methods that can be used to manipulate the column names of a Bimap object.

Note that all the methods below: (1) are undirected Bimap methods (i.e. their result does NOT depend on the direction of the map) and (2) don't access the database.

Usage

  colnames(x, do.NULL=TRUE, prefix="col")
  colmetanames(x)
  Lkeyname(x)
  Rkeyname(x)
  keyname(x)
  tagname(x)
  Rattribnames(x)
  Rattribnames(x) <- value
  ncol(x)

Arguments

x A Bimap object.
do.NULL Ignored.
prefix Ignored.
value A character vector containing the new right-attribute names (must be a subset of the current right-attribute names) or NULL.

Value

Author(s)

H. Pages

See Also

Bimap, BimapFormatting, AnnDbBimap-envirAPI

Examples

  ## With the hgu95av2GO and hgu95av2GO2PROBE maps
  library(hgu95av2.db)
  x <- hgu95av2GO
  y <- hgu95av2GO2PROBE
  colnames(x)
  colnames(y)
  colmetanames(x)
  colmetanames(y)
  Lkeyname(x)
  Lkeyname(y)
  Rkeyname(x)
  Rkeyname(y)
  keyname(x)
  keyname(y)
  tagname(x)
  tagname(y)
  Rattribnames(x)
  Rattribnames(y)
  ncol(x)
  ncol(y)

  ## Changing the right attributes of the GOSYNONYM map
  library(GO.db)
  x <- GOSYNONYM
  class(x) # GOTermsAnnDbBimap
  as.list(x)[1:3]
  colnames(x)
  colmetanames(x)
  tagname(x) # untagged bimap
  Rattribnames(x)
  Rattribnames(x) <- Rattribnames(x)[3:1]
  colnames(x)
  class(x) # AnnDbBimap
  as.list(x)[1:3]

[Package AnnotationDbi version 1.0.6 Index]