R/getMatchingSources.R

Defines functions getMatchingSources

Documented in getMatchingSources

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)
}
egonw/BridgeDbR documentation built on Sept. 18, 2023, 8:14 p.m.