lmrodriguezr / nonpareil

Estimate metagenomic coverage and sequence diversity
http://enve-omics.ce.gatech.edu/nonpareil/
Other
42 stars 11 forks source link

Input from stdin #29

Closed koopkaup closed 3 weeks ago

koopkaup commented 6 years ago

Is it possible to get the input file from standard input? For example, all my data is compressed and it would be more convenient to just pipe gunzip output to stdout and the use it as stdin in nonpareil.

lmrodriguezr commented 6 years ago

Hello @koopkaup Unfortunately, that would require major changes in the code, because the input files are read multiple times:

However, I think we could implement an option to read directly from zipped files (gzip / bzip2), what do you think @gunturus ?

M

gunturus commented 6 years ago

For random sampling, we randomly move to a position in the file. So, this will require us to have the file uncompressed to begin with.

lmrodriguezr commented 3 weeks ago

Gzip support was added in v3.5. Closing for now, but please feel free to reopen as needed.