Package: mrpheus 0.1.4

Lucas França

mrpheus: Raw Physiological Signal Analysis for Biological Rhythms Research

Raw physiological signal analysis for biological rhythms research. Provides ingestion, artefact detection, event detection, and feature extraction for multi-modal physiological recordings including polysomnography (EDF/EDF+), MRI-concurrent physiological logs (Philips PMU), and EEG. Covers cardiac rhythm (QRS detection, HRV), respiratory rhythm (apnoea detection, respiratory indices), and neural oscillations (sleep spindles, slow oscillations, automatic AASM sleep staging via a pre-trained LightGBM model ported from YASA; Vallat & Walker, 2021). Exports staged hypnograms to hypnor and derived metrics to syncR. Part of the Circadia Lab R ecosystem at Northumbria University.

Authors:Lucas França [aut, cre], Mario Leocadio-Miguel [aut]

mrpheus_0.1.4.tar.gz
mrpheus_0.1.4.zip(r-4.7-x86_64)mrpheus_0.1.4.zip(r-4.7-arm64)mrpheus_0.1.4.zip(r-4.6-x86_64)mrpheus_0.1.4.zip(r-4.6-arm64)mrpheus_0.1.4.zip(r-4.5-x86_64)
mrpheus_0.1.4.tgz(r-4.6-x86_64)mrpheus_0.1.4.tgz(r-4.6-arm64)mrpheus_0.1.4.tgz(r-4.5-x86_64)mrpheus_0.1.4.tgz(r-4.5-arm64)
mrpheus_0.1.4.tar.gz(r-4.7-arm64)mrpheus_0.1.4.tar.gz(r-4.7-x86_64)mrpheus_0.1.4.tar.gz(r-4.6-arm64)mrpheus_0.1.4.tar.gz(r-4.6-x86_64)
mrpheus_0.1.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
mrpheus/json (API)

# Install 'mrpheus' in R:
install.packages('mrpheus', repos = c('https://circadia-bio.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/circadia-bio/mrpheus/issues

Pkgdown/docs site:https://mrpheus.circadia-lab.uk

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

3.88 score 1 scripts 25 exports 25 dependencies

Last updated from:eac294b569 (on v0.1.4). Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK118
linux-devel-x86_64OK131
source / vignettesOK247
linux-release-arm64OK100
linux-release-x86_64OK138
macos-release-arm64OK144
macos-release-x86_64OK305
macos-oldrel-arm64OK103
macos-oldrel-x86_64OK181
windows-devel-arm64OK369
windows-devel-x86_64OK160
windows-release-arm64OK358
windows-release-x86_64OK113
windows-oldrel-x86_64OK124
wasm-releaseOK117

Exports:bandpass_filtercompute_ahicompute_band_powercompute_hr_signalcompute_hrv_sleepcompute_odicompute_slow_oscillationscompute_spectrogramcompute_spindlescompute_temporal_bandpowercorrect_eog_icacorrect_eog_regressiondetect_apneasdetect_artifactsdetect_powerlinedetect_qrsexport_hypnogramnotch_filterpalette_orpheusprepare_psgpreprocess_psgread_edfread_philips_physlogremove_dcstage_epochs

Dependencies:clidata.tabledplyredfReaderfastICAgenericsgluegsignaljsonlitelatticelifecyclelightgbmmagrittrMatrixpillarpkgconfigpracmaR6Rcpprlangtibbletidyselectutf8vctrswithr

PSG Preprocessing Pipeline
Data | Standard pipeline | Customising the pipeline | Using the signal-level functions independently | DC removal | Powerline detection | Notch filtering | Bandpass filtering | A note on filter design | EOG artefact correction | Regression-based correction | ICA-based correction | Which method to choose? | Full pipeline | References

Last update: 2026-07-06
Started: 2026-07-06

Spectral Analysis of Sleep EEG
Data | Setup | Band power per epoch | Relative power | Band power by sleep stage | Custom bands | Welch parameters | Temporal band power | Customising the window | Visualising temporal dynamics | Combining band power and staging | Parity with YASA | References

Last update: 2026-07-06
Started: 2026-07-06

Automatic AASM Sleep Staging
Data | Option A — via MNE Python (recommended) | Option B — direct download | Pipeline | 1. Load and inspect the recording | 2. Segment into 30-second epochs | 3. Stage epochs | 4. With artefact exclusion | Working with results | Stage distribution | Posterior probabilities | Visualising the night | Passing to hypnor | Model details | References

Last update: 2026-07-05
Started: 2026-07-05

Getting started with mrpheus
What is mrpheus? | Installation | PSG pipeline | Reading a recording | Preparing a recording | Artefact detection | Spectral analysis | Sleep event detection | Automatic sleep staging | Exporting to hypnor | Full PSG pipeline | MRI physiology pipeline | References

Last update: 2026-07-05
Started: 2026-06-27

MRI physiological signal processing
Reading a Philips PMU log | Signal channels | Event markers | QRS detection | PPU as an alternative | Heart rate signal | Epoch extraction | RR intervals per TR | Full pipeline | References

Last update: 2026-07-04
Started: 2026-07-04