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 Nov. 8, 2024, 4:21 a.m.