From 85c9f75051162d5e073c124e6aee0d5fdce86ba7 Mon Sep 17 00:00:00 2001 From: rraadd88 Date: Wed, 17 Jan 2024 12:51:35 -0500 Subject: [PATCH] Update __init__.py Added the command to convert gzip to bgzip. --- pyfaidx/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfaidx/__init__.py b/pyfaidx/__init__.py index 03030aa..53883e2 100644 --- a/pyfaidx/__init__.py +++ b/pyfaidx/__init__.py @@ -431,7 +431,8 @@ def __init__(self, raise UnsupportedCompressionFormat( "Compressed FASTA is only supported in BGZF format. Use " "the samtools bgzip utility (instead of gzip) to " - "compress your FASTA." + "compress your FASTA. " + "For example: zcat file.fa.gz | samtools bgzip -c > file.fa.bgz" ) elif self.filename.lower().endswith(('.bz2', '.zip')): raise UnsupportedCompressionFormat(