Skip to content

feat: add compute_haplotypes tool#8

Open
ameynert wants to merge 1 commit intoam_06_extract_gnomad_afsfrom
am_07_compute_haplotypes
Open

feat: add compute_haplotypes tool#8
ameynert wants to merge 1 commit intoam_06_extract_gnomad_afsfrom
am_07_compute_haplotypes

Conversation

@ameynert
Copy link
Copy Markdown
Collaborator

Summary

  • Ports compute_haplotypes.py from human-diversity-reference/scripts as a defopt-compatible toolkit tool
  • Reads VCF files, annotates variants with gnomAD population allele frequencies, and extracts phased haplotypes per population using two overlapping genomic windows
  • Writes the union of both windows as a keyed Hail table
  • Extracts the inner get_haplotypes function to module-level _get_haplotypes and replaces typer.echo with logging

Test plan

  • uv run --directory divref poe check-all passes

🤖 Generated with Claude Code

@ameynert ameynert had a problem deploying to github-actions-snakemake-linting April 10, 2026 22:59 — with GitHub Actions Failure
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: aeae0ce7-72e5-4a42-b79f-1cc403b51224

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch am_07_compute_haplotypes

Comment @coderabbitai help to get the list of available commands and usage tips.

@ameynert ameynert force-pushed the am_06_extract_gnomad_afs branch from 616578d to c41aafa Compare April 10, 2026 23:17
Port compute_haplotypes.py from human-diversity-reference/scripts as a
defopt-compatible toolkit tool. Reads VCF files, annotates variants with
gnomAD population allele frequencies, and extracts phased haplotypes per
population using two overlapping genomic windows, writing the union as a
keyed Hail table. Extracts the inner get_haplotypes function to module-level
_get_haplotypes and replaces typer.echo with logging.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ameynert ameynert force-pushed the am_07_compute_haplotypes branch from 250c6ca to b8eef18 Compare April 10, 2026 23:17
@ameynert ameynert temporarily deployed to github-actions-snakemake-linting April 10, 2026 23:17 — with GitHub Actions Inactive
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.

1 participant