R/onLoad.R

Defines functions getEFO getOntologyNoReasoning getOntology onLoad

Documented in getEFO getOntology getOntologyNoReasoning

.onLoad <- function(libname, pkgname) {
    #require(rJava)
    .jinit()
    .jaddClassPath(dir(system.file("jars", package=pkgname),full.names=TRUE))
}

getOntology <- function(pathToURI) {
    ontologyFromURI<-.jnew("uk.ac.ebi.ontocat.utils.OntologyParser",pathToURI)
    new("Ontology", ontology=ontologyFromURI)
}

getOntologyNoReasoning <- function(pathToURI) {
    ontologyFromURI<-.jnew("uk.ac.ebi.ontocat.utils.OntologyParser",pathToURI,"false")
    new("Ontology", ontology=ontologyFromURI)
}

getEFO <- function() {
    ontologyEFO<-.jnew("uk.ac.ebi.ontocat.utils.OntologyParser")
    new("Ontology", ontology=ontologyEFO)
}

Try the ontoCAT package in your browser

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

ontoCAT documentation built on Nov. 17, 2017, 12:06 p.m.