qiime2 / q2-longitudinal

QIIME 2 plugin for paired sample comparisons
BSD 3-Clause "New" or "Revised" License
9 stars 18 forks source link

pairwise-differences: t-value referenced before assignment #148

Closed nbokulich closed 4 years ago

nbokulich commented 4 years ago

Bug Description the t-value in pairwise-differences is not being assigned properly when there is no variance between groups. These lines should be amended: https://github.com/qiime2/q2-longitudinal/blob/8bf27af74a9ff43844ab860132b051098367dcf3/q2_longitudinal/_utilities.py#L241-L244

Probably to assign t = p = np.nan instead of pass

References See forum xref