Open mbhall88 opened 5 years ago
Hi Michael, thanks for reporting. It might be easy to add support for gzip using https://pypi.org/project/xopen/.
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...
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
It would maybe be useful to indicate in the README, or even have a catch when parsing CLI, that gzipped input is not accepted.