Class InducedDiseaseGraph
java.lang.Object
org.monarchinitiative.lirical.core.likelihoodratio.InducedDiseaseGraph
For some calculations of the phenotype likelihood ratio, we need to traverse the graph induced by the HPO terms to
which a disease is annotated. It is cheaper to create this graph once and reuse it for each of the query terms. This
class organizes that calculation. Note that this class is only used if there are no direct matches, so there is
no need to store the directly annotated diseases here.
- Author:
- Peter Robinson
-
Method Summary
Modifier and TypeMethodDescriptionstatic InducedDiseaseGraph
create
(org.monarchinitiative.phenol.annotations.formats.hpo.HpoDisease disease, org.monarchinitiative.phenol.ontology.data.MinimalOntology ontology) org.monarchinitiative.phenol.annotations.formats.hpo.HpoDisease
boolean
isExactExcludedMatch
(org.monarchinitiative.phenol.ontology.data.TermId tid) See comments aboutinducedNegativeGraph
.
-
Method Details
-
create
public static InducedDiseaseGraph create(org.monarchinitiative.phenol.annotations.formats.hpo.HpoDisease disease, org.monarchinitiative.phenol.ontology.data.MinimalOntology ontology) -
isExactExcludedMatch
public boolean isExactExcludedMatch(org.monarchinitiative.phenol.ontology.data.TermId tid) See comments aboutinducedNegativeGraph
.- Parameters:
tid
- A term that was negated in a patient- Returns:
- true if the term is also negated in the disease.
-
getDisease
public org.monarchinitiative.phenol.annotations.formats.hpo.HpoDisease getDisease()
-