tests/testthat/test-bitr.R

library(clusterProfiler)

context("bitr")

test_that("bitr", {
    expect_true('P22223' %in% bitr('1001', 'ENTREZID', 'UNIPROT', 'org.Hs.eg.db')[,2])
    expect_true('P22223' %in% bitr_kegg('1001', 'ncbi-geneid', 'uniprot', 'hsa')[,2])
})

Try the clusterProfiler package in your browser

Any scripts or data that you put into this service are public.

clusterProfiler documentation built on Feb. 11, 2021, 2:02 a.m.