Open hyanwong opened 8 months ago
This update enhances a genetic simulation utility, focusing on progress monitoring during simulations and supporting structural variations (SVs) like tandem duplications. It improves user experience by integrating tqdm
for progress tracking and refines the simulation's flexibility and accuracy by adjusting parameters related to validation and SV handling.
Files | Change Summary |
---|---|
tests/gigutil.py |
Added tqdm.auto import, replaced use_validation with skip_validate , added progress_monitor . |
tests/test_gigutil.py |
Added constants and attributes for duplication and validation, updated method calls for progress monitoring and SV handling. |
GeneticInheritanceGraphLibrary/tables.py |
Updated field type definitions for non-integer fields to enhance space efficiency. |
tests/test_tables.py |
Added a test method for adding edges with negative chromosome numbers, included assertions for negative values. |
requirements.txt |
Added tqdm package. |
In fields of code where logic hops,
🐇 A rabbit toils by lines and ops.
With progress bars that smoothly slide,
And duplications far and wide.
Through loops and functions, swift it leaps,
In binary burrows, deep it peeps.
"To simulate," it softly sings,
"Is to give data wings." 🚀
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?
WIP. You can test by running the following code:
For me, this takes about 10 mins, and results in a list of genome sizes that have lengths that differ by multiples of 450bp (the duplication size)
Summary by CodeRabbit
tqdm
package for progress tracking.