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(