Releases: ielis/hpo-toolkit
v0.5.4
v0.5.3
v0.5.2
v0.5.1
A patch release with no breaking changes and several bug fixes.
What's Changed
- Support providing custom stream to the logger by @ielis in #65
- Update the way we test the library by @ielis in #66
- Use default
ssl
context when fetching fromhttps
by @ielis in #67 - Update urls after the repo move by @ielis in #68
- Prevent storing ontology file at path with
None
in name by @ielis in #69
Full Changelog: v0.5.0...v0.5.1
v0.5.0
Breaking changes
There is one breaking change.
Enhance Term.definition
attribute
v0.5.0
enhances the definition of the ontology term with cross-references.
Previous state
Previously, the hpotk.model.Term
included a definition
attribute which was a simple str
:
import hpotk
hpo: hpotk.Ontology = ... # Get `Ontology` from somewhere
term = hpo.get_term('HP:0001166')
assert term.definition == 'Abnormally long and slender fingers ("spider fingers").'
New state
The v0.5.0
release encapsulates the definition into a hpotk.model.Definition
object that includes the definition string along with the cross-references:
term = hpo.get_term('HP:0001166')
# New code
definition = term.definition
assert definition.definition == 'Abnormally long and slender fingers ("spider fingers").'
assert definition.xrefs == ('HPO:probinson',)
How to migrate
All usages of term.definition
must be updated to term.definition.definition
.
What's Changed
- Setup benchmarking of graph traversals by @ielis in #60
- Add definition cross-references by @ielis in #63
- Add
OntologyStore
API by @ielis in #62
Full Changelog: v0.4.3...v0.5.0
v0.4.3
v0.4.2
v0.4.0
Add IndexedOntologyGraph
to speed up HPO graph operations by working in the term ID index space.
What's Changed
- Enhance the documentation by @ielis in #48
- Implement edge distance on
OntologyGraph
by @ielis in #51 - Implement hierarchical distance term id sorting by @ielis in #52
- Add
IndexedOntologyGraph
by @ielis in #53
Full Changelog: v0.3.1...v0.4.0
v0.3.1post1
Patch with improved documentation and tests. No changes to the production code.