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");
}
}
Aggregations