Closed hyanwong closed 7 months ago
The recent updates to the GeneticInheritanceGraphLibrary focus on enhancing the handling of genetic data. By incorporating defaultdict
for interval management and refining chromosome and interval processing, the library aims to streamline genetic analysis. Additionally, a new method for iterating over a child's chromosome numbers has been introduced, further enriching the library's capabilities in genetic inheritance tracking.
File Path | Change Summary |
---|---|
.../graph.py , .../tables.py |
- Introduced defaultdict import in graph.py - Improved stack declaration and chromosome handling in loops in graph.py - Updated method calls and parameters in graph.py - Added chromosomes_for_child method to iterate over chromosome numbers for a given child ID in tables.py |
.../constants.py |
Updated Const class to include NODE_IS_RE constant primarily for testing purposes |
.../conftest.py |
- Added imports for Const and ValidFlags from constants.py - Added fixtures with specific node and edge data for genetic inheritance graphs |
.../gigutil.py |
Modified iedge function to accept additional keyword arguments in its signature for flexibility |
.../test_graph.py |
- Removed two test methods related to sample resolution - Added three new test methods for sample resolution with different scenarios, including recombination nodes and multiple chromosomes |
.../test_tables.py |
- Renamed parameter in multiple test functions - Modified error messages for clarity in test_add_iedge_row_fail_primary_order_child_time function |
🐇✨
In the library's heart, where the genes intertwine,
A rabbit hops through, making code refine.
Withdefaultdict
in paw, and loops all in line,
It crafts with care, each genetic design.
"To better understand," it whispers with glee,
The wonders of inheritance, for you and for me.
🌟🧬
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Starts to address #103. No tests yet.
Summary by CodeRabbit