Skip to content
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

Phase regression #2

Open
tsalo opened this issue Aug 1, 2024 · 1 comment
Open

Phase regression #2

tsalo opened this issue Aug 1, 2024 · 1 comment

Comments

@tsalo
Copy link
Collaborator

tsalo commented Aug 1, 2024

Look at https://github.com/brettliem/phaseprep and https://github.com/idevicente/Phase-based_denoising_pipeline

@tsalo
Copy link
Collaborator Author

tsalo commented Aug 2, 2024

Steps:

  1. Remove non-steady-state volumes from phase data (identified from magnitude processing).
  2. Compute optimal order of Legendre polynomials.
  3. Convert phase from arbitrary units to radians.
  4. Combine magnitude and phase into complex-valued data.
  5. Split complex-valued data into real and imaginary components.
  6. Apply motion correction transform from magnitude processing to real and imaginary files.
  7. Combine motion-corrected real and imaginary files into complex-valued data.
  8. Split motion-corrected complex-valued file into magnitude and phase components.
  9. Temporally unwrap the motion-corrected phase data.
  10. Detrend the unwrapped phase data using the Legendre polynomial order determined previously.
  11. Apply brain mask from magnitude processing to phase data.
  12. ODR phase regression.
    1. Compute the power spectrum map of the phase data
    2. Find the time point index of the maximum frequency peak starting from the 93th time point.
    3. Compute the value that happens the most in the previous map to find the time point index of the respiration peak.
    4. Multiply this index by 1.1 to consider the subpeaks around the maximum peak.
    5. Convert it to frequencies (Hz) by multiplying it with the frequency value of the first time point.
    6. Run the ODR regression.
  13. Run standard GLM on phase-regressed magnitude data.
    • I'm not sure why the GLM is done separately from the phase regression. Maybe because the phase regression requires ODR?

@tsalo tsalo changed the title Phase regression? Phase regression Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant