Search in sources :

Example 1 with MedicOntologyService

use of ubic.basecode.ontology.providers.MedicOntologyService in project Gemma by PavlidisLab.

the class ExternalDatabaseEvidenceImporterAbstractCLI method loadServices.

// load all needed services
private synchronized void loadServices(String[] args) throws Exception {
    // this gets the context, so we can access beans
    Exception err = this.processCommandLine(args);
    if (err != null)
        throw err;
    OntologyService ontologyService = this.getBean(OntologyService.class);
    this.diseaseOntologyService = ontologyService.getDiseaseOntologyService();
    this.humanPhenotypeOntologyService = ontologyService.getHumanPhenotypeOntologyService();
    this.geneService = this.getBean(GeneService.class);
    while (!this.diseaseOntologyService.isOntologyLoaded()) {
        this.wait(3000);
        AbstractCLI.log.info("waiting for the Disease Ontology to load");
    }
    while (!this.humanPhenotypeOntologyService.isOntologyLoaded()) {
        this.wait(3000);
        AbstractCLI.log.info("waiting for the HP Ontology to load");
    }
    this.medicOntologyService = new MedicOntologyService();
}
Also used : GeneService(ubic.gemma.core.genome.gene.service.GeneService) MedicOntologyService(ubic.basecode.ontology.providers.MedicOntologyService) HumanPhenotypeOntologyService(ubic.basecode.ontology.providers.HumanPhenotypeOntologyService) OntologyService(ubic.gemma.core.ontology.OntologyService) DiseaseOntologyService(ubic.basecode.ontology.providers.DiseaseOntologyService) MedicOntologyService(ubic.basecode.ontology.providers.MedicOntologyService) SocketException(java.net.SocketException)

Aggregations

SocketException (java.net.SocketException)1 DiseaseOntologyService (ubic.basecode.ontology.providers.DiseaseOntologyService)1 HumanPhenotypeOntologyService (ubic.basecode.ontology.providers.HumanPhenotypeOntologyService)1 MedicOntologyService (ubic.basecode.ontology.providers.MedicOntologyService)1 GeneService (ubic.gemma.core.genome.gene.service.GeneService)1 OntologyService (ubic.gemma.core.ontology.OntologyService)1