zitmen / thunderstorm

ThunderSTORM: a comprehensive ImageJ plugin for SMLM data analysis and super-resolution imaging
http://zitmen.github.io/thunderstorm/
GNU General Public License v3.0
91 stars 42 forks source link

Bug/Feature in Merging molecules? #59

Open cleterrier opened 6 years ago

cleterrier commented 6 years ago

I am trying to merge molecules across frames that were localized in another software and exported as a ThunderSTORM .csv file. I understand that without the protocol file, TS is not able to recalculate the uncertainties of the merged molecules and some other parameters. To understand what happens, I made a test .csv file (attached as a zip file). After merging, the parameters that TS can't recalculate are kept from the first appearance of the molecule (such as uncertainties, chi2), and some of them are calculated from averaging (X, Y , Z coordinates, intensity in photons, etc.). But the number of detections displayed in the "detections" column is set as 1 for all resulting molecules, even if some are made from merging several molecules. Is this intended or is it a bug? I don't really care about the parameters not calculated, but I would like to filter out molecules that have too long reconnection trajectories (say detections >10), and I can't because of this.

Before merging:

beforemerging

After merging:

aftermerging

Test csv file: test.csv.zip