tritemio / FRETBursts

Burst analysis software for smFRET. **Moved to OpenSMFS organization**
https://github.com/OpenSMFS/FRETBursts
GNU General Public License v2.0
16 stars 17 forks source link

Fitting Framework and other improvements #18

Closed tritemio closed 10 years ago

tritemio commented 10 years ago

This PR adds the new fitting framework based on lmfit (version 0.8rc3 or newer required) and many other improvements.

Fitting Framework overview

This framework is based on the MultiFitter object defined in the module mfit. MultiFitter can compute histograms and KDE on multi-channel data (typically applied to burst-data, for example E or S). It can also find KDE peak position and fit the histograms with different models using lmfit. Thanks to lmfit we can fix a parameter, set bounds or algebraic constrains, we have complete error reports and correlations. Moreover the new Model infrastructure allows to build models very easily, like with a GUI (there is also a real GUI for the notebook).

For the common case of fitting E or S histograms the function bext.bursts_fitter() allow to quicky create a MultiFitter object (with optional weights) for a given Data object. The fitter object is saved as Data.E_fitter and Data.S_fitter.

Between the updated notebooks (in particular the see the usALEX notebook) and the reference documentation this new fitting infrastructure should be sufficiently documented.

Other Changes

Plots