qiime2 / q2-demux

BSD 3-Clause "New" or "Revised" License
0 stars 20 forks source link

poor demux summarize error message when summarizing empty demux #103

Closed ChrisKeefe closed 4 years ago

ChrisKeefe commented 5 years ago

Bug Description When qiime demux summarize is run on an empty 'demux' Artifact, it produces a sub-optimal error message:

Plugin error from demux: Cannot describe a DataFrame without columns

This error message is likely being passed up from Pandas.

Steps to reproduce the behavior

  1. Download or create an empty SampleData[SequencesWithQuality] or other acceptable Artifact. (e.g. this one)
  2. Pass it as an input to qiime demux summarize

Expected behavior demux summarize should test for an empty Artifact and render a clearer error message. e.g. 'Input data contains no sequences.'

Screenshots summarize_error

Computation Environment

References demux summarize source