File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -1608,7 +1608,7 @@ def mkschema(
1608
1608
1609
1609
def convert (
1610
1610
vcfs ,
1611
- out_path ,
1611
+ vcz_path ,
1612
1612
* ,
1613
1613
variants_chunk_size = None ,
1614
1614
samples_chunk_size = None ,
@@ -1617,6 +1617,12 @@ def convert(
1617
1617
show_progress = False ,
1618
1618
icf_path = None ,
1619
1619
):
1620
+ """
1621
+ Convert the VCF data at the specified list of paths
1622
+ to VCF Zarr format stored at the specified path.
1623
+
1624
+ .. todo:: Document parameters
1625
+ """
1620
1626
if icf_path is None :
1621
1627
cm = temp_icf_path (prefix = "vcf2zarr" )
1622
1628
else :
@@ -1631,7 +1637,7 @@ def convert(
1631
1637
)
1632
1638
encode (
1633
1639
icf_path ,
1634
- out_path ,
1640
+ vcz_path ,
1635
1641
variants_chunk_size = variants_chunk_size ,
1636
1642
samples_chunk_size = samples_chunk_size ,
1637
1643
worker_processes = worker_processes ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ chapters:
6
6
sections :
7
7
- file : vcf2zarr/tutorial
8
8
- file : vcf2zarr/cli_ref
9
+ - file : vcf2zarr/python_api
9
10
- file : plink2zarr/overview
10
11
sections :
11
12
- file : plink2zarr/cli_ref
Original file line number Diff line number Diff line change
1
+ (sec-vcf2zarr-python-api)=
2
+ # Python API
3
+
4
+ Basic usage:
5
+ ``` python
6
+ import bio2zarr.vcf as v2z
7
+
8
+ v2z.convert([vcf_path], vcz_path)
9
+ ```
10
+
11
+ ## API reference
12
+
13
+ ``` {eval-rst}
14
+
15
+ .. autofunction:: bio2zarr.vcf.convert
16
+
17
+ ```
You can’t perform that action at this time.
0 commit comments