Skip to content

Commit 91bbdc8

Browse files
committed
Remove VCF docs and refer to bio2zarr and vcztools
1 parent 1fea152 commit 91bbdc8

File tree

4 files changed

+7
-427
lines changed

4 files changed

+7
-427
lines changed

docs/api.rst

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -32,47 +32,11 @@ PLINK
3232
write_plink
3333
zarr_to_plink
3434

35-
VCF (reading)
35+
VCF
3636
-------------
3737

38-
.. deprecated:: 0.9.0
39-
Functions for reading VCF are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_ package.
40-
41-
.. currentmodule:: sgkit.io.vcf
42-
.. autosummary::
43-
:toctree: generated/
44-
45-
read_vcf
46-
vcf_to_zarr
47-
48-
For more low-level control:
49-
50-
.. currentmodule:: sgkit.io.vcf
51-
.. autosummary::
52-
:toctree: generated/
53-
54-
partition_into_regions
55-
vcf_to_zarrs
56-
concat_zarrs
57-
zarr_array_sizes
58-
59-
For converting from `scikit-allel's VCF Zarr representation <https://scikit-allel.readthedocs.io/en/stable/io.html#allel.vcf_to_zarr>`_ to sgkit's Zarr representation:
60-
61-
.. currentmodule:: sgkit
62-
.. autosummary::
63-
:toctree: generated/
64-
65-
read_scikit_allel_vcfzarr
66-
67-
VCF (writing)
68-
-------------
69-
70-
.. currentmodule:: sgkit.io.vcf
71-
.. autosummary::
72-
:toctree: generated/
73-
74-
write_vcf
75-
zarr_to_vcf
38+
Functions for reading and writing VCF were removed from sgkit, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_
39+
and `vcztools <https://github.com/sgkit-dev/vcztools>`_ packages.
7640

7741
Dataset
7842
-------

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ both popular Python genetics toolkits with a respective focus on population and
1919

2020
getting_started
2121
user_guide
22-
vcf
2322
examples/index
2423
api
2524
how_do_i

docs/user_guide.rst

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@ Reading and writing genetic data
1818
Installation
1919
------------
2020

21-
Sgkit can read standard genetic file formats, including VCF, PLINK, and BGEN. It can also export
22-
to VCF.
21+
Sgkit can read standard genetic file formats, including PLINK and BGEN. For reading VCF,
22+
please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_ package.
2323

24-
If sgkit has been installed using conda, support for reading BGEN and PLINK is included, but
25-
VCF is not because there is no Windows support for cyvcf2, the library we use for reading VCF data.
26-
If you are using Linux or a Mac, please install cyvcf2 using the following to enable VCF support::
27-
28-
$ conda install -c bioconda cyvcf2
24+
If sgkit has been installed using conda, support for reading BGEN and PLINK is included.
2925

3026
If sgkit has been installed using pip, then support for reading these formats is
3127
not included, and requires additional dependencies, which can be installed
@@ -39,10 +35,6 @@ To install sgkit with PLINK support::
3935

4036
$ pip install 'sgkit[plink]'
4137

42-
To install sgkit with VCF support::
43-
44-
$ pip install 'sgkit[vcf]'
45-
4638
Converting genetic data to Zarr
4739
-------------------------------
4840

@@ -88,22 +80,10 @@ arrays within an :class:`xarray.Dataset` from ``bed``, ``bim``, and ``fam`` file
8880
The :func:`sgkit.io.plink.write_plink` and :func:`sgkit.io.plink.zarr_to_plink`
8981
functions convert sgkit's Xarray data representation to PLINK.
9082

91-
VCF
92-
---
93-
94-
The :func:`sgkit.io.vcf.vcf_to_zarr` function converts one or more VCF files to
95-
Zarr files stored in sgkit's Xarray data representation, which can then be opened
96-
as a :class:`xarray.Dataset`.
97-
98-
The :func:`sgkit.io.vcf.write_vcf` and :func:`sgkit.io.vcf.zarr_to_vcf` functions
99-
convert sgkit's Xarray data representation to VCF.
100-
101-
See :ref:`vcf` for installation instructions, and details on using VCF in sgkit.
102-
10383
Working with cloud-native data
10484
------------------------------
10585

106-
TODO: Show how to read/write Zarr (and VCF?) data in cloud storage
86+
TODO: Show how to read/write Zarr data in cloud storage
10787

10888

10989
Datasets

0 commit comments

Comments
 (0)