Skip to content

Commit b1cc26c

Browse files
committed
Deprecate plink functions
1 parent cc01210 commit b1cc26c

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

docs/api.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ BGEN
2323
PLINK
2424
-----
2525

26+
.. deprecated:: 0.11.0
27+
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
28+
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.
29+
2630
.. currentmodule:: sgkit.io.plink
2731
.. autosummary::
2832
:toctree: generated/

sgkit/io/plink/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import warnings
2+
3+
warnings.warn(
4+
"Functions for reading and writing plink are deprecated, please use the bio2zarr and vcztools packages.",
5+
PendingDeprecationWarning,
6+
stacklevel=2,
7+
)
8+
19
try:
210
from .plink_reader import plink_to_zarr, read_plink
311
from .plink_writer import write_plink, zarr_to_plink

sgkit/io/plink/plink_reader.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def read_plink(
147147
Loads a single PLINK dataset as dask arrays within a Dataset
148148
from bed, bim, and fam files.
149149
150+
.. deprecated:: 0.11.0
151+
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
152+
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.
153+
150154
Parameters
151155
----------
152156
path
@@ -328,6 +332,10 @@ def plink_to_zarr(
328332
329333
Refer to :func:`read_plink` for details and limitations.
330334
335+
.. deprecated:: 0.11.0
336+
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
337+
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.
338+
331339
Parameters
332340
----------
333341
path

sgkit/io/plink/plink_writer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def write_plink(
4949
- ``sample_phenotype``: Phenotype code equal to 1 for control, 2 for case,
5050
and -1 for missing
5151
52+
.. deprecated:: 0.11.0
53+
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
54+
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.
55+
5256
Parameters
5357
----------
5458
ds
@@ -146,6 +150,10 @@ def zarr_to_plink(
146150
147151
Refer to :func:`write_plink` for details and limitations.
148152
153+
.. deprecated:: 0.11.0
154+
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
155+
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.
156+
149157
Parameters
150158
----------
151159
input

0 commit comments

Comments
 (0)