File: test_sql_utils.R

package info (click to toggle)
r-bioc-annotationhub 3.6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 620 kB
  • sloc: makefile: 2
file content (20 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
test_cache_datapathIds <- function() {
    ## map hub identifiers AH123 to cached identifier(s)
    hub <- AnnotationHub()

    ## 1:1 mapping
    result <- AnnotationHub:::.datapathIds(hub["AH28854"])
    checkIdentical(result, structure(34294L, .Names = "AH28854"))

    ## 1:several mapping
    #result <- AnnotationHub:::.datapathIds(hub["AH169"])
    #checkIdentical(result,
    #               structure(c(169L, 14130L), .Names = c("AH169", "AH169")))
    # Removed old ra zip files that needed index
    #   Currently no id associated with two files in 3.9


    ## unknown identifier
    result <- AnnotationHub:::.datapathIds(hub["AH0"])
    checkIdentical(result, setNames(integer(), character()))
}