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

Accept Gzip as input #10

Open
mbhall88 opened this issue Mar 5, 2019 · 3 comments
Open

Accept Gzip as input #10

mbhall88 opened this issue Mar 5, 2019 · 3 comments

Comments

@mbhall88
Copy link
Contributor

mbhall88 commented Mar 5, 2019

It would maybe be useful to indicate in the README, or even have a catch when parsing CLI, that gzipped input is not accepted.

@karel-brinda
Copy link
Owner

karel-brinda commented Mar 5, 2019

Hi Michael, thanks for reporting. It might be easy to add support for gzip using https://pypi.org/project/xopen/.

@karel-brinda karel-brinda changed the title Gzip not accepted as input Accept Gzip as input Mar 5, 2019
@mbhall88
Copy link
Contributor Author

mbhall88 commented Mar 5, 2019

In my experience even just the gzip package that comes with python is fairly easy to work with https://docs.python.org/3/library/gzip.html . Saves adding an extra dependency...

@niemasd
Copy link

niemasd commented Mar 30, 2023

Seeing this years later (so I assume gzip input support hasn't been added), but if you're running NanoSim-H in bash, you can use a named pipe to decompress on-the-fly:

nanosim-h <(zcat reference.fas.gz)

I just tested this right now, and it worked perfectly fine using NanoSim-H v1.1.0.4

In general, named pipes are useful when using programs that don't support a specific file format, as you can just do the conversion on-the-fly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants