[Biopython] NaN values, lowess

Lysiane Bouchard bouchard.lysiane at gmail.com
Wed Jan 27 18:16:30 UTC 2010


Hi,

I am using the lowess function in Bio.Statistics.lowess, version 1.53

When input array y is zero everywhere, I obtain yest=NaN everywhere.

I wonder if I did something wrong and if other special cases might lead to
NaN values.

------------------------------
-------------------------------------------------------

>>ipython --pylab

>>In [1]: import numpy

>>In [2]: from Bio.Statistics.lowess import lowess

>>In [3]: x = numpy.array(range(200))*1.0

>>In [4]: y = numpy.zeros([200,])

>>In [5]: yest = lowess(x,y)

>>In [6]: all(isnan(yest))
>>Out[6]: True

 -----------------------------------------------------------------------------------

Thank you,

Lysiane Bouchard



More information about the Biopython mailing list