Stats pushes should be moved into the filter block so that the summaries are computed on the filtered set.
Add a conditional to write reads only if the --length and --quality filters are the default 0 so that the costly writing operation is not executed when no filters are specified.
Stats pushes should be moved into the filter block so that the summaries are computed on the filtered set.
Add a conditional to write reads only if the
--length
and--quality
filters are the default0
so that the costly writing operation is not executed when no filters are specified.