Skip to content

Commit babc6e2

Browse files
hyanwongjeromekelleher
authored andcommitted
Add a sentence about saving using Bio.bgzf
1 parent a161280 commit babc6e2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/export.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ with gzip.open("output.vcf.gz", "wt") as f:
182182

183183
However, this gzipped VCF won't be fully compatible with downstream tools
184184
such as tabix, which usually require the VCF to use the specialised bgzip format.
185+
If you want to write bgzip files directly within python, you could try the `Bio.bgzf`
186+
library provided by [biopython](https://biopython.org).
185187

186188
(sec_export_vcf_masking_output)=
187189

0 commit comments

Comments
 (0)