psgscoring 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
psgscoring/__init__.py ADDED
@@ -0,0 +1,34 @@
1
+ """
2
+ psgscoring — AASM 2.6-compliant respiratory event scoring for polysomnography.
3
+
4
+ No deep learning, no GPU — pure signal processing with scipy and numpy.
5
+
6
+ Example
7
+ -------
8
+ >>> import mne
9
+ >>> from psgscoring import run_full_analysis
10
+ >>> raw = mne.io.read_raw_edf("recording.edf", preload=True)
11
+ >>> hypno = [...] # stage labels from YASA or manual scoring
12
+ >>> results = run_full_analysis(raw, hypno)
13
+ >>> print(f"AHI: {results['respiratory']['summary']['ahi_total']}")
14
+ """
15
+
16
+ __version__ = "0.1.0"
17
+ __author__ = "Bart Rombaut"
18
+
19
+ from ._core import (
20
+ linearize_nasal_pressure, compute_mmsd, preprocess_flow, preprocess_effort,
21
+ compute_dynamic_baseline, compute_stage_baseline, bandpass_flow,
22
+ detect_breaths, compute_breath_amplitudes, compute_flattening_index,
23
+ detect_breath_events,
24
+ detect_position_changes, reset_baseline_at_position_changes,
25
+ detect_respiratory_events, classify_apnea_type,
26
+ analyze_spo2, analyze_plm, analyze_position,
27
+ analyze_heart_rate, analyze_snore, detect_cheyne_stokes,
28
+ reinstate_rule1b_hypopneas,
29
+ run_pneumo_analysis,
30
+ build_sleep_mask, hypno_to_numeric, is_nrem, is_rem, is_sleep,
31
+ detect_channels, channel_map_from_user,
32
+ )
33
+ run_full_analysis = run_pneumo_analysis # backwards-compatibility alias
34
+ from ._arousal import detect_arousals, run_arousal_respiratory_analysis