Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Added the command to convert gzip to bgzip.
  • Loading branch information
rraadd88 authored Jan 17, 2024
1 parent c8200e8 commit 85c9f75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyfaidx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 85c9f75

Please sign in to comment.