ecopy
ecopy copied to clipboard
Problem in rarefy.py
Hi team ecopy
I used the function $ ep.rarefy(data.frame, 'rarefy') and it return me the error:
ecopy/diversity/rarefy.py:137: RuntimeWarning: invalid value encountered in divide rare_calc = np.sum(1 - comb(diff, size)/comb(N, size))
And using ep.rarefy(data.frame, 'rarecurve') return the error:
ecopy/diversity/rarefy.py:147: RuntimeWarning: invalid value encountered in double_scalars sBar = Sn - np.sum(comb(n-x, i))/comb(n, i)
Please what is your recommendation.