-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IRF-read should handle *.asc files #4
Comments
This can be addressed in future development. The current system sees transients as coming from datasets and it takes some effort to adapt it to single transients. |
Most IRF that we handle in TCSPC labs are *.asc files. IRF-sdt is only an acquisition unit. One uses a single-pixel time-curve as IRF and not the whole image. This is because IRF is not distributed equally in an image. An image with urea crystal may have only 1 pixel that is from SHG and that is why I think we should handle .asc files ( even "instead" of sdt files). |
Are |
a) .asc file is just one-pixel time-curve written in ascii format. It is easy to modify on a notepad and is derived from the acquisition software(either SPCM or SPCimage). |
@Xanthorapedia please upload/send_me an example *.asc file you used for enabling this feature. I can't make it work yet. Find attached a sample IRF ASCII file I used. |
I tried a single T-axis, tab-delimited transposed axis, and a few others. nothing worked out. maybe refer to this site: https://www.becker-hickl.com/faq/how-to-use-a-measured-irf-in-flim-analysis-in-spcimage/ |
@Xanthorapedia : I like the way it looks. But please send me the modified file you used, so that I can test it on my end. It seems like I am missing something. My flimj-UI is current according to the FLIMJ-update site. Is there a different version on GitHub that I should try for this? |
I just tried with the flimj-ui-1,0.7 version on github. but i can't make the asc-loading to work. I tried with single column files with newline and whitespace separation. There is no error. i don't see the irf peak. that's all. I guess it would be easier for me if you could just send me the format that worked for you. at least i can rule out the file-format issue |
Can you try this one? Make sure your file has |
okay. so it was not the file format. it was the secret "show-irf- intensity" dropdown menu. But now, I cannot see the IRF when the data file is loaded. I need to optimize the vertical bars/ fitting range based on where my IRF peak is. how can we fix that? |
The secret dropdown is documented in the manual. The default behavior is that if the IRF loading goes wrong, The error will be reported in the debug console. One improvement could be to automatically jump to "IRF Intensity" once an IRF is set. Shall we take that? As for manually setting the ranges, any idea as to how to detect the peak boundary? |
One of the purposes of IRF is to decide if the lifetime-datafile file fitting-endpoints are justified or not. automatically feeding the IRF into the LMA/Bayes may cause errors if the shift between them is larger. And I think that we should not try to find peak/shift the IRF. It will add more confusion unless we add more controls for the user to adjust the shift-position. So I would say, the simplest solution is to let the green curve from the IRF-dropdown menu stick even when that menu is back to Intensity-mode. |
@Xanthorapedia : there is no changes to this feature. The idea I mentioned is a way to see both lifetime and irf curve together in the plotting panel regardless of which pixel lifetime curve is drawn from. This step has a lot of practical purposes. The current version, we can do only irf or intensity. I suggest, to have a both lifetime curve and a "normalized IRF to the lifetime curve" plotted together? let me know what you think. |
@JenuC I think the problem is that the IRF and lifetime curve are so different in magnitude that plotting one dwarfs the other. But both are actually there. I'm experimenting with normalizing IRF before plotting (this screenshot is taken in IRF mode, I plotted IRF to have the same height as the data): I also adjusted the way IRF is displayed in intensity mode if that makes more sense: The part of the green curve selected in the IRF mode is left-justified, and you can adjust the start cursor in IRF mode to shift the peak left and right (assuming there are enough leading zeros in the IRF). Please let me know if this would help. |
yeah. this looks good. I tried to test it, but i cant get the UI to start with the current build version
|
Makes sure huge IRF peaks doesn't dwarf data and make it easier to estimate shift. Requested in #4.
@JenuC Can you please try again now? Make sure to include the newly released flimj-ops:2.1.0 if you are installing by copying jars. I will make a release and upload to the update site after this issue is closed. |
IRF -expected file should be a 1-dimensional ASCII file (T-axis). unless there is a reason. Not all IRF are sdt files. Conventionally its tab-delimited *.asc file.
The text was updated successfully, but these errors were encountered: