Skip to content

feat: add create_fasta_and_index tool#11

Open
ameynert wants to merge 2 commits intoam_09_compute_variation_ratiosfrom
am_10_create_fasta_and_index
Open

feat: add create_fasta_and_index tool#11
ameynert wants to merge 2 commits intoam_09_compute_variation_ratiosfrom
am_10_create_fasta_and_index

Conversation

@ameynert
Copy link
Copy Markdown
Collaborator

Summary

  • Ports create_fasta_and_index.py from human-diversity-reference/scripts as a defopt-compatible toolkit tool
  • Generates DivRef FASTA sequences with flanking reference context and a DuckDB index for use by remap_divref
  • Reuses get_haplo_sequence and split_haplotypes from divref.haplotype
  • Fixes a loop-variable closure bug (B023), renames chr loop variable to chrom to avoid shadowing the built-in, and replaces print/typer.echo with logging
  • Adds tests/tools/test_create_fasta_and_index.py with happy-path tests for get_haplo_sequence and split_haplotypes (Hail JVM test marked skip)

Test plan

  • uv run --directory divref poe check-all passes
  • uv run --directory divref pytest tests/tools/test_create_fasta_and_index.py — all non-skip tests pass

🤖 Generated with Claude Code

@ameynert ameynert had a problem deploying to github-actions-snakemake-linting April 10, 2026 23:11 — 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: 1ac59ea7-1f4d-416c-8d68-a6ca7fa34f21

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_10_create_fasta_and_index

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

@ameynert ameynert force-pushed the am_09_compute_variation_ratios branch from 0fe6bba to 2e3ca4f Compare April 10, 2026 23:17
ameynert and others added 2 commits April 10, 2026 16:17
Port create_fasta_and_index.py from human-diversity-reference/scripts as a
defopt-compatible toolkit tool. Generates DivRef FASTA sequences with
flanking reference context and a DuckDB index for use by remap_divref.
Reuses get_haplo_sequence and split_haplotypes from divref.haplotype.
Renames the chr loop variable to chrom to avoid shadowing the built-in,
fixes a loop-variable closure bug (B023), and replaces print/typer.echo
with logging.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds tests/tools/__init__.py to create the package and
test_create_fasta_and_index.py with happy-path tests for
get_haplo_sequence and split_haplotypes. The Hail JVM test
is marked skip; the remaining tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ameynert ameynert force-pushed the am_10_create_fasta_and_index branch from 19bf206 to 6f51106 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