Class HpoTermSanitizer
java.lang.Object
org.monarchinitiative.lirical.core.service.HpoTermSanitizer
-
Constructor Summary
ConstructorDescriptionHpoTermSanitizer
(org.monarchinitiative.phenol.ontology.data.MinimalOntology hpo) -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.monarchinitiative.phenol.ontology.data.TermId>
replaceIfObsolete
(org.monarchinitiative.phenol.ontology.data.TermId termId) The method performs 2 things: dropstermId
if it's absent from current HPO, and replaces thetermId
with current term iftermId
is obsolete.
-
Constructor Details
-
HpoTermSanitizer
public HpoTermSanitizer(org.monarchinitiative.phenol.ontology.data.MinimalOntology hpo)
-
-
Method Details
-
replaceIfObsolete
public Optional<org.monarchinitiative.phenol.ontology.data.TermId> replaceIfObsolete(org.monarchinitiative.phenol.ontology.data.TermId termId) The method performs 2 things:- drops
termId
if it's absent from current HPO, and - replaces the
termId
with current term iftermId
is obsolete.
- drops
-