Skip to content

Commit 01db67a

Browse files
committed
Move sgkit-bgen into main repo #256
1 parent d604302 commit 01db67a

19 files changed

+1038
-36
lines changed

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ scikit-learn
1313
partd
1414
fsspec
1515
bed-reader
16+
git+https://github.com/pangeo-data/rechunker.git
17+
cachetools
18+
cbgen
1619
cyvcf2; platform_system != "Windows"
1720
yarl

setup.cfg

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ vcf =
5757
cyvcf2
5858
fsspec
5959
yarl
60+
bgen =
61+
git+https://github.com/pangeo-data/rechunker.git
62+
cachetools
63+
cbgen
6064

6165
[coverage:report]
6266
fail_under = 100
@@ -115,10 +119,14 @@ ignore_missing_imports = True
115119
ignore_missing_imports = True
116120
[mypy-setuptools]
117121
ignore_missing_imports = True
118-
[mypy-sgkit_plink.*]
119-
ignore_missing_imports = True
120122
[mypy-sklearn.*]
121123
ignore_missing_imports = True
124+
[mypy-cbgen.*]
125+
ignore_missing_imports = True
126+
[mypy-rechunker.*]
127+
ignore_missing_imports = True
128+
[mypy-cachetools.*]
129+
ignore_missing_imports = True
122130
[mypy-bed_reader.*]
123131
ignore_missing_imports = True
124132
[mypy-sphinx.*]

sgkit/io/bgen/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
try:
2+
from .bgen_reader import bgen_to_zarr, read_bgen, rechunk_bgen # noqa: F401
3+
4+
__all__ = ["read_bgen", "bgen_to_zarr", "rechunk_bgen"]
5+
except ImportError as e:
6+
msg = (
7+
"sgkit bgen requirements are not installed.\n\n"
8+
"Please install them via pip :\n\n"
9+
" pip install 'git+https://github.com/pystatgen/sgkit#egg=sgkit[bgen]'"
10+
)
11+
raise ImportError(str(e) + "\n\n" + msg) from e

0 commit comments

Comments
 (0)