ONTMAPCOUNTS: Number of mapped keys for the maps in this package

Description Details See Also Examples

Description

ONTMAPCOUNTS provides the "map count" (i.e. the count of mapped keys) for each map in this package.

Details

This "map count" information is precalculated and stored in the package annotation DB. This allows some quality control and is used by the checkMAPCOUNTS function defined in AnnotationDbi to compare and validate different methods (like count.mappedkeys(x) or sum(!is.na(as.list(x)))) for getting the "map count" of a given map.

See Also

mappedkeys, count.mappedkeys, checkMAPCOUNTS

Examples

1
2
3
4
5
6
7
8
9
  ONTMAPCOUNTS
  mapnames <- names(ONTMAPCOUNTS)
  ONTMAPCOUNTS[mapnames[1]]
  x <- get(mapnames[1])
  sum(!is.na(as.list(x)))
  count.mappedkeys(x)   # much faster!

  ## Check the "map count" of all the maps in package
  #checkMAPCOUNTS("xxx.db")

hxin/topOnto.HDO.db documentation built on May 17, 2019, 9:15 p.m.