You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add coordinate_system_zero_based parameter to all table providers
This commit implements the coordinate system parameter for all bio format
table providers (VCF, GFF, BAM, BED, CRAM) to support both 0-based and
1-based coordinate output.
Changes:
- Add `coordinate_system_zero_based: bool` parameter to all TableProvider
constructors
- Store coordinate system preference in Arrow schema metadata with key
`bio.coordinate_system_zero_based`
- Add `COORDINATE_SYSTEM_METADATA_KEY` constant in bio-format-core
- Update position conversion in physical_exec.rs for each format:
- When true (default): subtract 1 from noodles 1-based positions
- When false: use noodles positions as-is (1-based)
- Update all binaries, examples, and tests to pass the new parameter
- Fix test assertions to expect 0-based coordinates (default)
Breaking Change: All TableProvider::new() constructors now require
an additional bool parameter as the last argument.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments