Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for gzipped paf file #5

Closed
bakerwm opened this issue Jan 30, 2021 · 1 comment
Closed

add support for gzipped paf file #5

bakerwm opened this issue Jan 30, 2021 · 1 comment

Comments

@bakerwm
Copy link

bakerwm commented Jan 30, 2021

Hi @mbhall88 , how about making PafFile() support for gzipped file?

I have a lot paf files, compressed in gzipped format (saving space).
How to open these files with current paf version 0.1.3?

I tried to use xopen to open the stream instead, and it works.

# file: pafpy/paffile.py

# add xopen
from xopen import xopen

# replace line-109
self._stream = xopen(self.path)
@mbhall88
Copy link
Owner

mbhall88 commented Feb 1, 2021

Version 0.2.0 adds support for gzip-compressed files now: https://pafpy.xyz/#compressed-input

Let me know if you have any problems with it

@mbhall88 mbhall88 closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants