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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.