biolink / biolink-model-toolkit

A collection of useful python functions for looking up information and working with the Biolink Model
https://biolink.github.io/biolink-model-toolkit/
BSD 3-Clause "New" or "Revised" License
20 stars 11 forks source link

add parameter to get_descendents and get_anscestors to allow mixins to be returned #37

Closed sierra-moxon closed 3 years ago

sierra-moxon commented 3 years ago

Now that 'gene or gene product' has become a mixin, our documentation is out of date. Brett Smith noticed that t.get_descendants('gene or gene product') now returns: ['gene or gene product', 'gene product mixin', 'gene product isoform mixin']

It might be helpful to add functionality to the toolkit methods, get_descendents and get_anscestors to include mixins in the hierarchy.