Closed kevinlibuit closed 5 months ago
Hey @kevinlibuit!
We actually sorted that out a couple of weeks ago (in connection with this issue #166 ), but have not yet made a new release. The update can be seen here: https://github.com/andersen-lab/Freyja/blob/1fa14df1ad2512cb50620cff4296d6df4107b5e7/freyja/_cli.py#L378
Assuming this covers your needs, I'll go ahead and make the release. Let me know if you'd like the failure result to look different from this.
Josh
Ah, this is perfect! Sorry I missed that closed issue.
Freyja Plot will filter samples out based on the
--min_cov
input value. If all the data in a set have coverages below this threshold, all of these samples get filtered out leaving nothing for the Freyja workflow to plot. This results in an error asFreyja plot
works to parse the empty aggregated file:Raising this as an issue as it took me some time to figure out what exactly was happening.
A potential update to avoid this could be some kind of graceful failure that would ID an empty aggregate demixed file that exists the execution and displays some kind of error indicating the problem.