R/loadDatabase.R

Defines functions loadDatabase

Documented in loadDatabase

loadDatabase <- function(location) {
  if(is.na(location)) location = tempdir();
  J("org.bridgedb.rdb.SimpleGdbFactory")$createInstance(
    location,
    paste("jdbc:derby:jar:(", location, ")database", sep="")
  )
  idMapper <- .jcall(
    "org/bridgedb/BridgeDb","Lorg/bridgedb/IDMapper;",
    "connect", paste("idmapper-pgdb", location,sep=":")
  );
  idMapper
}

Try the BridgeDbR package in your browser

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

BridgeDbR documentation built on May 2, 2018, 4:48 a.m.