taxprofiler / taxpasta

TAXnomic Profile Aggregation and STAndardisation
https://taxpasta.readthedocs.io/
Apache License 2.0
34 stars 7 forks source link

[BUG] Bracken compositionality tolerance is too strict #75

Closed Midnighter closed 1 year ago

Midnighter commented 1 year ago

Is there an existing issue for this?

Problem description

Reported by @alexhbnr

I would like to merge multiple Bracken output tables. Prior to merging them, taxpasta performs a check whether the relative abundances that Bracken reports add up to 1. The default threshold for rounding errors is 0.001. However, from my 32 profiled samples, the sum of all relative abundances is less than 0.999 for 25 of them and taxpasta throws a critical error. Since all of the samples have a total relative abundance of 0.995, I would personally consider the samples perfectly fine for merging and would like taxpasta to continue anyway.

Code sample

No response

Environment

Package Version
taxpasta 0.2.2

Anything else?

No response