CAnBioNet / TkNA

9 stars 1 forks source link

Enable computation of fold change when the mean/median is 0 for a treatment #18

Closed macovskym closed 1 year ago

macovskym commented 1 year ago

When only one of the treatments has a value of 0, it is replaced with the minimum nonzero value between both treatments divided by 10. When both of the treatments have a value of 0, the fold change is NaN and the so the edge is excluded. However, if this is for the median and the user has configured the median to be used, an exception is raised.

This change also makes it so that both the mean and median fold changes are computed, although only the one configured by the user will be used for consistency checking and PUC.