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

Burst data #63

Closed kfriedl closed 7 years ago

kfriedl commented 7 years ago

I'd like to extract the burst data after a burstsearch and store it in a file. As far as I can see, the burst start and stop information is stored in the burstlib.data object. How can I add the detection channel and excitation period information?

tritemio commented 7 years ago

I recommend exporting all the burst data in a pandas DataFrame with the function:

bext.burst_data

For your info, the core burst data is in Data.mburst (a list of Bursts objects). Bursts object contain minimal information such as burst start/stop and a few other properties. Keep in mind that Bursts gives counts with no correction, and burst durations and times in timestamps_units.

Conversely bext.burst_data returns corrected counts in all the different stream, times in milliseconds and basically all the burst information contained in additional Data attributes (including background in each stream).

tritemio commented 7 years ago

Also, one of FRETBursts notebooks shows how to export burst data and timestamps in each burst:

tritemio commented 7 years ago

This issue was moved to OpenSMFS/FRETBursts#1