-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ENH: TDDR for Hb type fNIRS data #10125
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
Conversation
|
Thanks @HanBnrd I am largely supportive of this, but just have a few practical questions.
|
|
Hi @rob-luke, Thanks for your comment. I couldn't find if there is a specific reason for applying TDDR on OD data rather than other types. It is just mentioned in the article (Fishburn et al. 2019):
related to how simulated data has been generated; and
when describing the analysis methods. By taking into account how the algorithm works, this is why I believe this should be applicable to Hb type or even intensities. I believe that this is applied on OD initially since this technique is usually applied before bandpass filtering and researchers usually filter OD data. Maybe it can also be useful to apply TDDR on intensity data. Since the average intensity is usually used to get the OD type data: deltaOD(t) = -log10(I(t)/I(average)), do you think it could be useful eventually to correct artefacts before the conversion so that the average intensity is not skewed by the motion artefacts? I don't know if that would make a big difference since relative changes are usually studied but maybe it can be useful to someone? I agree though that it's probably better to stay as close as possible to the original work if @frankfishburn designed it for OD data specifically. |
rob-luke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the suggested changes and restricting the application to od and hb data. Just a few wording comments. Otherwise, I think this is ready for broader review once the tests go green. Thanks @HanBnrd
|
Hi @rob-luke, Sorry it took so long but it should now be ready for review. I've seen you just modified the TDDR tests in a PR today, I had an issue having them pass with Hb data with the baseline shift initially implemented which is why I modified them too (this is why there's a conflict at the moment), let me know if you'd like me to use your new version (with Thanks :) |
|
Great to hear from you @HanBnrd, I hope everything is going well for you. Could you rebase off the main branch so we can easier see your proposed changes? It will be great to get this merged. Thanks for the persistence |
Co-authored-by: Robert Luke <748691+rob-luke@users.noreply.github.com>
|
I'm good, I hope you are well too @rob-luke! Thanks for checking this PR. This should be good with the rebase now. |
larsoner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1 for merge
@rob-luke feel free to merge if you're happy
* upstream/main: (24 commits) Use less memory when loading EDF file (mne-tools#10638) BUG: fix ipython console accessibility after MNEQtBrowser in Spyder (mne-tools#10637) WIP: Fix mne.time_frequency.multitaper Nyquist adjustment slightly incorrect (mne-tools#10541) BUG: Fix bug with fNIRS reordering (mne-tools#10630) MNT: PyQt6 for pip pre 3.10 (mne-tools#10636) CI: Fix conda (mne-tools#10628) MRG: Update installer links to point to 1.0.3_0 (mne-tools#10622) [BUG, MRG] fix info write access (mne-tools#10626) [MRG] Fixed group_by titles in evoked_plot. (mne-tools#10618) [BUG, MRG] Replace image_interp with interpolation in topomap plot arguments (mne-tools#10617) MAINT: Fix timeout (mne-tools#10624) Simplify mne-tools#10619 (mne-tools#10620) Drop EEG rejection thresholds when replacing EEG with CSD channels (mne-tools#10619) Add get_montage support for fNIRS (mne-tools#10611) ENH: Improve make_head_surface options (mne-tools#10592) [ENH, MRG] Add citation for intracranial JOSS paper (mne-tools#10616) [ENH] Add sys info for mne-icalabel (mne-tools#10615) MRG: Add "highlight" parameter to Evoked.plot() to conveniently highlight time periods (mne-tools#10614) MRG: Allow to pass array of "average" values to plot_evoked_topomap() (mne-tools#10610) fix: snirf length units (mne-tools#10613) ...
|
In principle yes, in practice no because I already did that when I pushed a merge with |
mne/preprocessing/nirs/tests/test_temporal_derivative_distribution_repair.py
Show resolved
Hide resolved
|
Thanks @HanBnrd ! |
Reference issue
Closes #10124. Related to the #7556 PR.
What does this implement/fix?
Enables to apply the temporal derivative distribution repair (TDDR) algorithm on hemoglobin concentrations.
(FYI @rob-luke @frankfishburn)