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

Background-corrected trajectories drop below zero #93

Closed nsivan16 closed 1 year ago

nsivan16 commented 1 year ago

Describe the bug After bleaching, the Intensities are too high or too low (not around 0). We are mainly using "N-Median" as the default background correction method. Nonetheless, using a different correction method do not improve the issue.

Expected behavior After bleaching, the traces should drop around zero. Often the traces drop to a higher or lower value than 0.

Screenshots image image image

Desktop (please complete the following information):

Additional context The method "Dark traces" solves sometimes the issue, but chooses randomly a spot as reference, where another molecule is.

Your contact nirusan.sivanantharsa@uzh.ch

mca-sh commented 1 year ago

Hello Nirusan and thak you for reporting this issue.

We've had this concern many times in the past. It most probably comes from a loss of focus in the video sample, or a bleaching fluorescent background. This is supported by the fact the the "dark trace" background correction (meaning the subtraction of a background-time trace) solves the issue. This method was actually implemented for this type of data.

However, the "dark trace" method should not target other molecules and this must be corrected. Can you show me a screenshot of such mis-targetting (you can just drag-and-drop it in the writing area)? I just want to be sure the density of single molecules is not too high.

nsivan16 commented 1 year ago

Hi Mélodie,

Here are some examples. image image image

mca-sh commented 1 year ago

Hi Nirusan, thanks for the images.

So it comes from a background signal decreasing in time like we had in the past with the new microscope.

As we will have lots of these data, there is now a dynamic checkbox that allows to calculate and subtract a background trajectory with any of the available methods. Like this, you can use the accurate "N median values" method in the "dynamic" mode to get the best correction for this type of data.

Beside, thanks to your remark, I've corrected the way the dark coordinates are automatically found in order to have minimum overlap with any bright signal.

You can find the corrected version here: https://github.com/RNA-FRETools/MASH-FRET/archive/refs/heads/dynamic-bg-corr.zip Please tell me if it work for you.

Mélodie

mca-sh commented 1 year ago

Hi Nirusan, I will merge these modifications in the main branch. If anything isn't working with them, please reopen this issue. Mélodie

nsivan16 commented 1 year ago

Hi Mélodie,

Thanks for the information. I've been using the new version since this week. It works very well. Thank you very much! I will get back to you if any new problems occur.

Thanks, Nirusan


From: Mélodie Hadzic @.> Sent: Wednesday, 13 September 2023 15:14 To: RNA-FRETools/MASH-FRET @.> Cc: Nirusan Sivanantharasa @.>; Author @.> Subject: Re: [RNA-FRETools/MASH-FRET] Background-corrected trajectories drop below zero (Issue #93)

Hi Nirusan, I will merge these modifications in the main branch. If anything isn't working with them, please reopen this issue. Mélodie

— Reply to this email directly, view it on GitHubhttps://github.com/RNA-FRETools/MASH-FRET/issues/93#issuecomment-1717614716, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAWWQ4H6AHMAE3M2BK5ZI3DX2GWUZANCNFSM6AAAAAA3VFAYVI. You are receiving this because you authored the thread.Message ID: @.***>