Refactor input files#171
Merged
Merged
Conversation
… into its own class AND the frag_generator function into its own module.
Author
|
Note: this should merge after #170 . |
Restore handle compatibility, repair flake8 failures, and drop unsupported Python 3.9 metadata
Restore tabix genome-wide counting semantics and raise support metadata to Python 3.11
Use a Python-version-specific SciPy pin and re-enable 3.10 in CI
Filter parsed CLI args against target function signatures and add a coverage smoke test.
Compare DELFI outputs from the existing 2-bit fixture and a matching FASTA fixture to cover the new reference backend.
Kudostoy0u
previously approved these changes
Apr 30, 2026
Collaborator
Kudostoy0u
left a comment
There was a problem hiding this comment.
Refactors look good in current state
The merge-base changed after approval.
Kudostoy0u
approved these changes
May 4, 2026
Collaborator
Kudostoy0u
left a comment
There was a problem hiding this comment.
Refactors look good in current state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR refactors input files (BAM/CRAM/SAM/Frag(.gz)) behind a common interface, with all validation occurring in that class rather than the
frag_generatorfunction. This allowed streamlining the logic infrag_generatorto be less branchy. Asfrag_generatorseems to be the single most important function in this repo, I've refactored it into its own module. This required breaking dependency cycles, soutils/now includes a number of new modules.Unfortunately this touches nearly every module in the package, but most of the edits are minor. Again, happy to answer questions and contribute to testing if needed.
Tests: