R/getOrganismCode.R

Defines functions getOrganismCode

Documented in getOrganismCode

getOrganismCode <- function(name) {
  organism <- .jcall(
			"org/bridgedb/bio/Organism",
			"Lorg/bridgedb/bio/Organism;",
			"fromLatinName",name )
  if (is.null(organism)) {
    stop(paste("Unknown species:", name))
  }
  organism$code()
}

Try the BridgeDbR package in your browser

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

BridgeDbR documentation built on Nov. 8, 2020, 5:09 p.m.