bacpop / unitig-counter

Uses cDBG to count unitigs in bacterial populations
GNU Affero General Public License v3.0
13 stars 2 forks source link

Compress output using gzip #6

Closed santeripuranen closed 4 years ago

santeripuranen commented 4 years ago

Here's what you could do as a quick fix for reducing the size of unitigs.txt and unitigs.unique_rows.Rtab, which tend to become excessively large. The suggested code adds a new option -gzip that will do exactly that using the gzip filter from boost::iostreams. It will unfortunately also add compile-time dependencies to said boost lib as well as to zlib.. but since you already depend on boost, and zlib is available pretty much everywhere, that shouldn't be a huge problem.