Skip to content

refactor: Rename format/ to scanner/ and nest batch_iterator under it#163

Merged
nvictus merged 1 commit intoabdenlab:mainfrom
nvictus:refactor-scanner-dirs
Mar 6, 2026
Merged

refactor: Rename format/ to scanner/ and nest batch_iterator under it#163
nvictus merged 1 commit intoabdenlab:mainfrom
nvictus:refactor-scanner-dirs

Conversation

@nvictus
Copy link
Copy Markdown
Member

@nvictus nvictus commented Mar 6, 2026

Restructure each format family's internal modules from:

/format/ (scanner structs)
/batch_iterator/ (iteration impl)
/model/ (data model)

to:

/scanner/ (scanners + batch iterators)
/model/ (data model)

This better reflects what the modules contain: scanners are the primary abstraction, and batch iterators are their implementation detail.

Also deduplicate resolve_chrom_id into alignment/scanner.rs (shared by sam, bam, cram) and gxf/scanner.rs (shared by gff, gtf).

Public API unchanged — all re-exports preserved at the family level.

Restructure each format family's internal modules from:

  <family>/format/    (scanner structs)
  <family>/batch_iterator/  (iteration impl)
  <family>/model/     (data model)

to:

  <family>/scanner/          (scanners + batch iterators)
  <family>/model/            (data model)

This better reflects what the modules contain: scanners are the primary
abstraction, and batch iterators are their implementation detail.

Also deduplicate resolve_chrom_id into alignment/scanner.rs (shared by
sam, bam, cram) and gxf/scanner.rs (shared by gff, gtf).

Public API unchanged — all re-exports preserved at the family level.
@nvictus nvictus merged commit 91f428c into abdenlab:main Mar 6, 2026
7 checks passed
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