Skip to content

read_alignment reads ZOMBI2's bundled alignments.fasta - #34

Merged
AADavin merged 1 commit into
mainfrom
feat/bundled-alignments
Oct 12, 2026
Merged

AADavin merged 1 commit into
mainfrom
feat/bundled-alignments

Conversation

@AADavin

@AADavin AADavin commented Oct 11, 2026

Copy link
Copy Markdown
Owner

ZOMBI2 can now write a run's alignments as one file (--bundle, AADavin/zombi2#464). That file is alignments.fasta, and each header is >n12_g1200 fam4.

ph.zombi.read_alignment(run, family) now reads that layout as well as the per-family alignments/fam<N>.fasta. It looks for the per-family file first, then for the bundled one, under sequences/ or the run root as before. From the bundled file it takes the records whose header ends fam<N>, and strips that ending before mapping each name to its genome.

  • tests/test_zombi.py: one family read from both layouts gives the same alignment.
  • 164 tests pass. ruff and mypy are clean.

🤖 Generated with Claude Code

A ZOMBI2 run written with --bundle keeps every family's alignment in one
alignments.fasta, each header ending " fam<N>". read_alignment now reads
that layout as well as one fam<N>.fasta per family.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AADavin
AADavin merged commit 21a1d86 into main Oct 12, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
github-pages — 21a1d86c Deployed Oct 12, 2026 by AADavin via deploy #91
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