Skip to content

Refactor input files#171

Merged
Kudostoy0u merged 7 commits into
epifluidlab:mainfrom
edawson:edawson/refactor-input-file
May 4, 2026
Merged

Refactor input files#171
Kudostoy0u merged 7 commits into
epifluidlab:mainfrom
edawson:edawson/refactor-input-file

Conversation

@edawson
Copy link
Copy Markdown

@edawson edawson commented Apr 28, 2026

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_generator function. This allowed streamlining the logic in frag_generator to be less branchy. As frag_generator seems to be the single most important function in this repo, I've refactored it into its own module. This required breaking dependency cycles, so utils/ 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:

  • I did not modify the tests, except to adjust imports as needed
  • All tests pass.

… into its own class AND the frag_generator function into its own module.
@edawson
Copy link
Copy Markdown
Author

edawson commented Apr 28, 2026

Note: this should merge after #170 .

@Kudostoy0u Kudostoy0u self-requested a review April 29, 2026 02:25
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
Kudostoy0u previously approved these changes Apr 30, 2026
Copy link
Copy Markdown
Collaborator

@Kudostoy0u Kudostoy0u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactors look good in current state

@edawson edawson dismissed Kudostoy0u’s stale review May 4, 2026 02:20

The merge-base changed after approval.

@Kudostoy0u Kudostoy0u self-requested a review May 4, 2026 02:24
Copy link
Copy Markdown
Collaborator

@Kudostoy0u Kudostoy0u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactors look good in current state

@Kudostoy0u Kudostoy0u merged commit 5431559 into epifluidlab:main May 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants