qiime2 / q2-feature-classifier

QIIME 2 plugin supporting taxonomic classification
BSD 3-Clause "New" or "Revised" License
18 stars 38 forks source link

BUG: _autotune_reads_per_batch fails when input is empty #175

Open nbokulich opened 2 years ago

nbokulich commented 2 years ago

Bug Description When the query sequence file contains zero sequences, _autotune_reads_per_batch fails (because it cannot grep an empty file evidently).

Steps to reproduce the behavior See description and error message reported on forum

Expected behavior _autotune_reads_per_batch (or maybe somewhere upstream) should catch this error and raise a more intuitive error message indicating that the inputs are empty.