You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make genomics pipeline runnable and add reasoning orchestrator
Fixes that blocked the package from importing/running at all:
- Biopython's removed GC() now falls back to gc_fraction(); biopython
itself is optional, with a pure-Python GC fallback so core analysis
runs without it
- numpy is optional (stdlib random fallback for synthetic sequences)
- Correct the inverted numpy guard in kmer_counts that made the DNA
classifier raise whenever numpy was installed
- Rewrite DNAClassifier.predict with a numeric floor for unseen k-mers
(no more math-domain errors) and add predict_proba
- Fix the broken 'GenoProject.src' import path in tests and example;
add src/__init__.py and a conftest that puts the repo root on sys.path
Enhancements:
- New src/pipeline.py: GenomicsPipeline orchestrates loader -> analyzer
-> visualizer and returns an AnalysisReport with results plus a
per-stage reasoning trace
- Expand test suite to 11 tests (GC, k-mers, classifier, pipeline);
add GitHub Actions CI including a no-biopython import job
- requirements-dev.txt with the minimal run/test deps; README updated
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LXctkRNPepGZKrEsLr8swy
0 commit comments