hpotk.ontology.load.obographs package
- hpotk.ontology.load.obographs.load_ontology(file: ~typing.IO | str, term_factory: ~hpotk.ontology.load.obographs._factory.ObographsTermFactory[~hpotk.model._term.Term] = <hpotk.ontology.load.obographs._factory.TermFactory object>, graph_factory: ~hpotk.graph._factory.GraphFactory = <hpotk.graph._factory.CsrIndexedGraphFactory object>, prefixes_of_interest: ~typing.Set[str] = {'HP'}) Ontology [source]
- hpotk.ontology.load.obographs.load_minimal_ontology(file: ~typing.IO | str, term_factory: ~hpotk.ontology.load.obographs._factory.ObographsTermFactory[~hpotk.model._term.MinimalTerm] = <hpotk.ontology.load.obographs._factory.MinimalTermFactory object>, graph_factory: ~hpotk.graph._factory.GraphFactory = <hpotk.graph._factory.CsrIndexedGraphFactory object>, prefixes_of_interest: ~typing.Set[str] = {'HP'}) MinimalOntology [source]
- class hpotk.ontology.load.obographs.MinimalTermFactory[source]
Bases:
ObographsTermFactory
[MinimalTerm
]- create_term(term_id: TermId, node: Node) MinimalTerm | None [source]
Create MinimalTerm or a more specific instance for TermId and Node
The term may not be created at the discretion of the factory, in which case None is returned.