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

respiratory cycle figure from TAPAS #266

Open
Ruwanmri opened this issue May 23, 2024 · 2 comments
Open

respiratory cycle figure from TAPAS #266

Ruwanmri opened this issue May 23, 2024 · 2 comments
Assignees
Labels
physio Issues related to PhysIO Toolbox

Comments

@Ruwanmri
Copy link

Hi,

As the TAPAS gives valuable output figures for peak detection of the cardiac pulse, I am interested in obtaining a similar figure for the respiratory cycle. Is there a straightforward way to extract this information (A similar figure to cardiac pulses) from TAPAS without modifying the core code significantly?

Thank you.

Best regards,
Ruwan

@mrikasper
Copy link
Member

Dear Ruwan,

If you select the respiratory volume per time (RVT) model as an output, and then use the original computation method by Rasmus Birn et al. that is based on maxima and minima of the breathing trace (see PhysIO/code/model/tapas_physio_rvt_peaks.m, you might already get what you want. You can try it out by setting

   physio.model.rvt.method = 'peaks'; % the default it now 'hilbert', which is more robust for atypical breathing (yawns etc.), but doesn't use peak detection
   physio.verbose.level = 2; % or higher; to get the peak plots

(see PhysIO/code/tapas_physio_new.m for details or check the help in the batch editor).

If you just need the plot, this will suffice. If you want to extract the peak times, you will have to dig some variables out of tapas_physio_rvt_peaks, e.g,. timeRpulseMax.

Please let me know if this helps!

All the best,
Lars

@mrikasper mrikasper self-assigned this May 23, 2024
@mrikasper mrikasper added the physio Issues related to PhysIO Toolbox label May 23, 2024
@Ruwanmri
Copy link
Author

Ruwanmri commented May 28, 2024

Hi Lars,

Thank you very much. This was very helpful.

Best regards,
Ruwan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physio Issues related to PhysIO Toolbox
Projects
None yet
Development

No branches or pull requests

2 participants