alife-data-standards / alife-std-dev-python

Python development utilities for working with standardized ALife data
MIT License
0 stars 3 forks source link

Add LOD utility #12

Closed alackles closed 1 year ago

alackles commented 3 years ago

This pull request creates a function extract_asexual_lod as a simple extension of extract_asexual_lineage. The difference is that extract_asexual_lod does not require a leaf node to be identified; instead it selects the maximally-valued extant leaf node which has a root node as its ancestor, and returns the lineage with that leaf and root.

In the future this function could be extended to not only handle living taxa, but right now that's what it does