Skip to main content

Extension for pyPhasesRecordloader

Extension to load data records from the MrOS Sleep Study (MrOS) database.

The extensions requires a downloaded version of the mros dataset. The location can be set through the config value mros-path.

Usage

In a phase you can acess the data through the RecordLoader:

Add the plugins and config values to your project.yaml:

name: MrOSProject
plugins:
  - pyPhasesML
  - pyPhasesRecordloaderMrOS
  - pyPhasesRecordloader

phases:
  - name: MyPhase

config:
  mros-path: C:/datasets/mros

In a phase (phases/MyPhase.py) you can acess the records through the RecordLoader:

from pyPhasesRecordloader import RecordLoader
from pyPhases import Phase

class MyPhase(Phase):
    def run(self):
      recordIds = recordLoader.getRecordList()
      for recordId in recordIds:
        record = recordLoader.getRecord(recordId)

Run Your project with python -m phases run MyPhase

Annotations

Count EventConcept
1452282 SpO2 desaturation|SpO2 desaturation
684753 Periodic leg movement - right|PLM (Right)
663100 Periodic leg movement - left|PLM (Left)
624159 ASDA arousal|Arousal (ASDA)
411225 Limb movement - right|Limb Movement (Right)
399403 Limb movement - left|Limb Movement (Left)
296939 Unsure|Unsure
283691 Hypopnea|Hypopnea
207671 SpO2 artifact|SpO2 artifact
187852 Stage 2 sleep|2
173961 Wake|0
120933 Obstructive apnea|Obstructive Apnea
111248 Stage 1 sleep|1
83140 Stage 3 sleep|3
43650 REM sleep|5
32577 Central apnea|Central Apnea
4745 Stage 4 sleep|4
3930 Recording Start Time
3754 Arousal|Arousal ()
1095 Arousal|Arousal (ARO Limb)
193 Periodic breathing|Periodic Breathing
133 Arousal|Arousal (Asda)
80 Mixed apnea|Mixed Apnea
58 Tachycardia|Tachycardia
27 Arousal resulting from respiratory effort|Arousal (ARO RES)
26 Respiratory effort related arousal|RERA
8 Respiratory artifact|Respiratory artifact
2 Unscored|9
2 Narrow complex tachycardia|Narrow Complex Tachycardia
2 Blood pressure artifact|Blood pressure artifact
1 Spontaneous arousal|Arousal (ARO SPONT)

Metadata

Release files for pyPhasesRecordloaderMrOS 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyPhasesRecordloaderMrOS 0.8.1
File Size Uploaded Provenance Actions
pyphasesrecordloadermros-0.8.1.tar.gz 6.8 kB Without provenance Details for pyphasesrecordloadermros-0.8.1.tar.gz

Release files / pyphasesrecordloadermros-0.8.1.tar.gz

Download URL pyphasesrecordloadermros-0.8.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e0d3c7ed6fdcfe7656299c4b529cf99e9b8fc34a74e0c0de56c667695298655c
BLAKE2b-256 checksum
How to use checksums
9718946f54daf1d314fcc91a75a45dab19b49e9fb25013b3bb027f9386c7048d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for pyPhasesRecordloaderMrOS 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page