Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ BGEN
PLINK
-----

.. deprecated:: 0.11.0
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.

.. currentmodule:: sgkit.io.plink
.. autosummary::
:toctree: generated/
Expand Down
8 changes: 6 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ Changelog
.. Breaking changes
.. ~~~~~~~~~~~~~~~~

.. Deprecations
.. ~~~~~~~~~~~~
Deprecations
~~~~~~~~~~~~

- Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.
(:user:`tomwhite`, :pr:`1324`, :issue:`1318`)

.. Improvements
.. ~~~~~~~~~~~~
Expand Down
8 changes: 8 additions & 0 deletions sgkit/io/plink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import warnings

warnings.warn(
"Functions for reading and writing plink are deprecated, please use the bio2zarr and vcztools packages.",
DeprecationWarning,
stacklevel=2,
)

try:
from .plink_reader import plink_to_zarr, read_plink
from .plink_writer import write_plink, zarr_to_plink
Expand Down
8 changes: 8 additions & 0 deletions sgkit/io/plink/plink_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ def read_plink(
Loads a single PLINK dataset as dask arrays within a Dataset
from bed, bim, and fam files.

.. deprecated:: 0.11.0
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.

Parameters
----------
path
Expand Down Expand Up @@ -328,6 +332,10 @@ def plink_to_zarr(

Refer to :func:`read_plink` for details and limitations.

.. deprecated:: 0.11.0
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.

Parameters
----------
path
Expand Down
8 changes: 8 additions & 0 deletions sgkit/io/plink/plink_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def write_plink(
- ``sample_phenotype``: Phenotype code equal to 1 for control, 2 for case,
and -1 for missing

.. deprecated:: 0.11.0
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.

Parameters
----------
ds
Expand Down Expand Up @@ -146,6 +150,10 @@ def zarr_to_plink(

Refer to :func:`write_plink` for details and limitations.

.. deprecated:: 0.11.0
Functions for reading and writing plink are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.

Parameters
----------
input
Expand Down
Loading