File: test_getAnnMap.R

package info (click to toggle)
r-bioc-annotate 1.84.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,624 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## Set up 
require(org.Hs.eg.db)
require(annotate)
require(RUnit)

## For testing 
test_getAnnMap <- function(){
  ## test for a map that exist
  map <- getAnnMap("CHRLOC","org.Hs.eg.db")
  checkTrue( class(map) == "AnnDbMap" )
  ## and test for a map that does not (but which is available via select)
  map2 <- getAnnMap("ONTOLOGY","org.Hs.eg.db")
  checkTrue( class(map2) == "FlatBimap" )
}