OpenSMFS / FRETBursts

Burst analysis software for single and multi-spot single-molecule FRET (smFRET) data.
https://opensmfs.github.io/FRETBursts/
GNU General Public License v2.0
13 stars 9 forks source link

Export binned time trace #15

Open DanielisRutkauskas opened 6 years ago

DanielisRutkauskas commented 6 years ago

Is there a way to export a binned time trace?

tritemio commented 6 years ago

It is a matter of getting the timestamps that you need and then creating histogram using standard numpy np.histogram. The result is an array of counts that you can save to disk in many ways, for example using np.savetxt.

The only FRETBursts specific part is getting the timestamps. The options

EDIT: You can also export a DataFrame of photons in bursts with bext.burst_photon() (added in FRETBursts master, or v0.6.6). Usage example in Example - Exporting Burst Data Including Timestamps.ipynb