Commit e32541d
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>1 parent 2cdd804 commit e32541d
File tree
40 files changed
+1091
-99
lines changed- .github/workflows
- benchmarks/runner/src
- datafusion
- bio-format-bam
- examples
- src
- bio-format-bed
- examples
- src
- bio-format-core/src
- bio-format-cram/src
- bio-format-gff
- examples
- src
- bin
- tests
- bio-format-vcf
- examples
- src
- bin
- tests
40 files changed
+1091
-99
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
| 169 | + | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | | - | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
183 | 191 | | |
184 | 192 | | |
185 | 193 | | |
| |||
294 | 302 | | |
295 | 303 | | |
296 | 304 | | |
| 305 | + | |
297 | 306 | | |
| 307 | + | |
298 | 308 | | |
299 | 309 | | |
300 | 310 | | |
| |||
303 | 313 | | |
304 | 314 | | |
305 | 315 | | |
306 | | - | |
| 316 | + | |
307 | 317 | | |
308 | 318 | | |
309 | 319 | | |
310 | 320 | | |
311 | 321 | | |
312 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
313 | 329 | | |
314 | 330 | | |
315 | 331 | | |
| |||
0 commit comments