Search in sources :

Example 1 with HumanPhenotypeOntologyService

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

the class PhenotypeAssoOntologyHelperImpl method afterPropertiesSet.

@Override
public void afterPropertiesSet() {
    /*
         * We add them even when they aren't available so we can use unit tests that mock or fake the ontologies.
         */
    DiseaseOntologyService diseaseOntologyService = ontologyService.getDiseaseOntologyService();
    this.ontologies.add(diseaseOntologyService);
    if (!diseaseOntologyService.isEnabled()) {
        log.debug("DO is not enabled, phenotype tools will not work correctly");
    }
    MammalianPhenotypeOntologyService mammalianPhenotypeOntologyService = ontologyService.getMammalianPhenotypeOntologyService();
    this.ontologies.add(mammalianPhenotypeOntologyService);
    if (!mammalianPhenotypeOntologyService.isEnabled()) {
        log.debug("MPO is not enabled, phenotype tools will not work correctly");
    }
    HumanPhenotypeOntologyService humanPhenotypeOntologyService = ontologyService.getHumanPhenotypeOntologyService();
    this.ontologies.add(humanPhenotypeOntologyService);
    if (!humanPhenotypeOntologyService.isEnabled()) {
        log.debug("HPO is not enabled, phenotype tools will not work correctly");
    }
}
Also used : DiseaseOntologyService(ubic.basecode.ontology.providers.DiseaseOntologyService) HumanPhenotypeOntologyService(ubic.basecode.ontology.providers.HumanPhenotypeOntologyService) MammalianPhenotypeOntologyService(ubic.basecode.ontology.providers.MammalianPhenotypeOntologyService)

Aggregations

DiseaseOntologyService (ubic.basecode.ontology.providers.DiseaseOntologyService)1 HumanPhenotypeOntologyService (ubic.basecode.ontology.providers.HumanPhenotypeOntologyService)1 MammalianPhenotypeOntologyService (ubic.basecode.ontology.providers.MammalianPhenotypeOntologyService)1