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: use NucleotidePosition value object, add 0-based coordinate conversion (#85)
* Feat: Use nucleotide position instead of integer. Therefore, the interger is already validated
* Apply php-cs-fixer changes
* fix: enforce 1-based coordinates, add 0-based half-open conversion
NucleotidePosition must reject position 0 to stay consistent with
the 1-based closed coordinate system used by length(), containsPosition(),
intersection() and HGVS g. notation.
Add GenomicRegion::fromZeroBasedHalfOpen() and toZeroBasedHalfOpen()
for BED/BAM/bigWig interoperability: convert at the I/O boundary,
work internally in 1-based closed coordinates.
🤖 Generated with Claude Code
* Implement 1-based and 0-based logik into NucleotidePosition.php
* Add function genomicPositions to GenomicRegion.php
Change function name parse to parseOneBased
* Apply php-cs-fixer changes
---------
Co-authored-by: Dennis Haupt <dennis.haupt@mll.com>
Co-authored-by: KingKong1213 <168984406+KingKong1213@users.noreply.github.com>
Co-authored-by: Simon Bigelmayr <simon.bigelmayr@mll.com>
0 commit comments