getMatchingSources <- function(identifier) {
set <- .jcall(
"org/bridgedb/DataSourcePatterns",
"Ljava/util/Set;",
"getDataSourceMatches", identifier
)
str <- strsplit(set$toString(), "\\[")
str <- strsplit(str[[1]][2], "\\]")
str <- strsplit(str[[1]][1], ", ")
unlist(str)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.