test: add happy-path test for compute_haplotype_statistics#29
test: add happy-path test for compute_haplotype_statistics#29
Conversation
Uses the committed chr1_100001_200000_haplotypes.ht and chr1_100001_200000.gnomad_afs.ht test data. Asserts both output TSV files are written with the correct headers, row counts, and exact values for a single (frequency=0.005, window=5000) parameter combination. Closes #24 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new test module is added to verify the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
chr1_100001_200000_haplotypes.htandchr1_100001_200000.gnomad_afs.httest datahl.init()(Spark context already running from session fixture).hgdp.tsvand.gnomad.tsvoutput files are written with correct headers, row counts (1 freq × 1 window), and exact counts (24 unique haplotypes, 473 gnomAD variants at freq ≥ 0.005, window=5000)Closes #24
Test plan
uv run --directory divref poe check-allpasses (format/lint failures are pre-existing in untrackedextract_gnomad_single_afs.py)compute_haplotype_statisticsreaches 100% test coverage🤖 Generated with Claude Code
Summary by CodeRabbit