sdsc-ordes / modos-api

Python API to manage multi-omics digital objects
https://sdsc-ordes.github.io/modos-api
Apache License 2.0
0 stars 0 forks source link

refactor: region type #77

Closed cmdoret closed 4 months ago

cmdoret commented 4 months ago

Context: we use region strings (UCSC format, e.g. chr:start-end) throughout the code and keep parsing / serializing them and doing operations.

Proposed changes: This PR adds a dedicated Region type that centralizes the logic to:

The main advantage is reducing duplication and more explicit code.

Additional changes: