RNA-FRETools / MASH-FRET

MATLAB package to analyze single-molecule FRET data
https://rna-fretools.github.io/MASH-FRET/
GNU General Public License v3.0
8 stars 2 forks source link

Import of .ets video data file fails #84

Closed Befazl closed 2 years ago

Befazl commented 2 years ago

Describe the bug I have measured some movies with ets format, and somehow I recently get an error when I try to upload the movie file. I have tried to upload it with MASH-FRET Version [1.3.2] (bf9e2ee), where I failed. However, with the older MASH-FRET Version [1.3.1] (ad20b057) it works.

To Reproduce Steps to reproduce the behavior:

  1. New project
  2. import video
  3. select ets. video file

Error Code 14:33 -- Import video from file: D:\00_BESF_SigelLab\02_Projects\21_ED135E-L14_BeFa\211_Raw_Data\smFRET set up IV\20221108_20221108_beadslide_FS_02\stack1\frame_t_0.ets ... 14:33 -- Tagged Image File Format(*.tiff) Cycle time = 0.10359s-1 Movie dimensions = 256x256 pixels Movie length = 1000 frames Lasers = 532nm, 640nm

Import movie frames from file... Process completed. 14:33 -- Tagged Image File Format(*.tiff) Cycle time = 0.10359s-1 Movie dimensions = 256x256 pixels Movie length = 1000 frames Lasers = 532nm, 640nm

14:33 -- Recalculate average images... 14:33 -- Average images successfully recalculated! Index exceeds the number of array elements. Index must not exceed 1.

Error in getStrPop (line 81) round(clr{1}{i,j}(1:3)*255));

Error in ud_setExpSet_tabDiv (line 30) str_pop = getStrPop('DTA_chan',{proj.labels,proj.FRET,proj.S,...

Error in edit_setExpSet_nExc (line 77) ud_setExpSet_tabDiv(h_fig);

Error in push_setExpSet_impFile (line 86) edit_setExpSet_nExc(h.edit_nExc,[],h_fig,h_fig0);

Error while evaluating UIControl Callback.

Expected behavior Video opened Screenshots n/a Desktop (please complete the following information):

Additional context link to affected file: https://filesender.switch.ch/filesender2/?s=download&token=03012135-19a3-41ae-b457-aa418a889273

Your contact besim.fazliji@chem.uzh.ch

mca-sh commented 2 years ago

Hi Besim and thank you for the report and the files. I couldn't reproduce the error with the latest version of MASH (https://github.com/RNA-FRETools/MASH-FRET/archive/refs/heads/MASH-FRET-1.3.3-doc.zip). It could be that this bug was fixed, since the version you are using is from last February. Can you try with this version? Be sure to delete the default_param.ini located in the MASH-FRET/MASH-FRET folder before running MASH. Best, Mélodie

Befazl commented 2 years ago

Hi Mélo,

Thanks a lot! Yes, with the new version the bug is fixed.

Thank you a lot and best wishes, Besim