Skip to content

Commit 5547783

Browse files
committed
Move sgkit-bgen into main repo sgkit-dev#256
1 parent 037f068 commit 5547783

18 files changed

+1005
-36
lines changed

setup.cfg

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ plink =
5656
vcf =
5757
cyvcf2
5858
yarl
59+
bgen =
60+
git+https://github.com/pangeo-data/rechunker.git
61+
cbgen
5962

6063
[coverage:report]
6164
fail_under = 100
@@ -114,10 +117,14 @@ ignore_missing_imports = True
114117
ignore_missing_imports = True
115118
[mypy-setuptools]
116119
ignore_missing_imports = True
117-
[mypy-sgkit_plink.*]
118-
ignore_missing_imports = True
119120
[mypy-sklearn.*]
120121
ignore_missing_imports = True
122+
[mypy-cbgen.*]
123+
ignore_missing_imports = True
124+
[mypy-rechunker.*]
125+
ignore_missing_imports = True
126+
[mypy-cachetools.*]
127+
ignore_missing_imports = True
121128
[mypy-bed_reader.*]
122129
ignore_missing_imports = True
123130
[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)