Closed Guillawme closed 7 years ago
I am actually not sure it is a good idea to make the fit function more robust.
Getting an error because of a very bad guess of the initial value of kd
forces the user to think about their data. On the other hand, having a fit function that "works" no matter what and will always output a value can lead some users to believe completely meaningless values.
I just noticed that three equations share these same parameters. For now, this function will be enough.
Closed with commit 633ac14b8c1358a65e56140e0bb41f035b1cbe41.
I have at least one dataset (from March 17th) which yields a guess of kd=250 using
guess_quadratic_parameters()
, whereas the real value is 26. It seems to be a problem fornls()
, which cannot fit properly with a first guess too far from the actual value.Error from
nls()
:I don't know how to solve this problem. There is no easier guess for kd than taking the concentration at half-maximum FRET signal. Maybe the call to
nls()
can be modified to use a more robust algorithm? Maybe we need to usenls2
instead?Practical examples for using
nls2
: