Skip to content

Move from pyranges to ruranges#241

Merged
tomwhite merged 2 commits intosgkit-dev:mainfrom
tomwhite:ruranges
Mar 10, 2026
Merged

Move from pyranges to ruranges#241
tomwhite merged 2 commits intosgkit-dev:mainfrom
tomwhite:ruranges

Conversation

@tomwhite
Copy link
Copy Markdown
Member

@tomwhite tomwhite commented Jul 1, 2025

Fixes #111

It was actually fairly straightforward to switch to ruranges - all the tests pass locally. However, ruranges has a minimum Python version of 3.12, so we can't merge this yet.

Also, we can't remove the pandas dependency (one of the motivations for #111) since we use it for plink.

@jeromekelleher
Copy link
Copy Markdown
Member

However, ruranges has a minimum Python version of 3.12, so we can't merge this yet.

Oh dear. Hopefully there's no strong reason for this and support for older python versions can be added

@tomwhite tomwhite marked this pull request as ready for review March 2, 2026 15:47
@tomwhite
Copy link
Copy Markdown
Member Author

tomwhite commented Mar 2, 2026

I've updated the code to support both pyranges and ruranges, and to depend on pyranges for Python < 3.12 and ruranges otherwise. We can drop the pyranges code when we remove Python 3.11.

Copy link
Copy Markdown
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tomwhite tomwhite added this pull request to the merge queue Mar 10, 2026
Merged via the queue into sgkit-dev:main with commit 91852f6 Mar 10, 2026
14 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.

Replace PyRanges with NCLS to avoid pandas dependency

2 participants