From cf01c93107b8cc2e08ba900b048e3f8783267be2 Mon Sep 17 00:00:00 2001 From: Yan Wong Date: Tue, 9 Jun 2026 15:31:21 +0100 Subject: [PATCH] Add a sentence about saving using Bio.bgzf --- docs/export.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/export.md b/docs/export.md index f5f039e0d1..46acb911a5 100644 --- a/docs/export.md +++ b/docs/export.md @@ -182,6 +182,8 @@ with gzip.open("output.vcf.gz", "wt") as f: However, this gzipped VCF won't be fully compatible with downstream tools such as tabix, which usually require the VCF to use the specialised bgzip format. +If you want to write bgzip files directly within python, you could try the `Bio.bgzf` +library provided by [biopython](https://biopython.org). (sec_export_vcf_masking_output)=