Skip to content

Commit 85c9f75

Browse files
authored
Update __init__.py
Added the command to convert gzip to bgzip.
1 parent c8200e8 commit 85c9f75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyfaidx/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ def __init__(self,
431431
raise UnsupportedCompressionFormat(
432432
"Compressed FASTA is only supported in BGZF format. Use "
433433
"the samtools bgzip utility (instead of gzip) to "
434-
"compress your FASTA."
434+
"compress your FASTA. "
435+
"For example: zcat file.fa.gz | samtools bgzip -c > file.fa.bgz"
435436
)
436437
elif self.filename.lower().endswith(('.bz2', '.zip')):
437438
raise UnsupportedCompressionFormat(

0 commit comments

Comments
 (0)