Skip to main content

Adds a record loaders to the pyPhases package

Project description

Extension for pyPhasesRecordloader

Extension to load data records from the Study of Osteoporotic Fractures (SOF) database.

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

Usage

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

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

name: SOFProject
plugins:
  - pyPhasesML
  - pyPhasesRecordloaderSOF
  - pyPhasesRecordloader

phases:
  - name: MyPhase

config:
  sof-path: C:/datasets/sof

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
69280 Limb movement - right|Limb Movement (Right)
64941 Limb movement - left|Limb Movement (Left)
61557 Hypopnea|Hypopnea
58100 ASDA arousal|Arousal (ASDA)
24017 Stage 2 sleep|2
17201 SpO2 artifact|SpO2 artifact
15620 Stage 3 sleep|3
14126 Wake|0
9281 Obstructive apnea|Obstructive Apnea
8589 Stage 1 sleep|1
3295 REM sleep|5
1898 Arousal|Arousal ()
1580 Stage 4 sleep|4
1078 Central apnea|Central Apnea
859 Technician Notes
453 Recording Start Time
353 Periodic leg movement - right|PLM (Right)
250 Periodic leg movement - left|PLM (Left)
217 SpO2 desaturation|SpO2 desaturation
27 Unscored|9
2 Respiratory artifact|Respiratory artifact
2 Mixed apnea|Mixed Apnea

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyphasesrecordloadersof-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file pyphasesrecordloadersof-0.1.0.tar.gz.

File metadata

  • Download URL: pyphasesrecordloadersof-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for pyphasesrecordloadersof-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a78d59e6ed359acb9c7346e41674631e17d46ad488ef927326be2ddd88ad07cb
MD5 e937f45c40cb4f0d49b5d6c8030f4fa5
BLAKE2b-256 c739f241c077751f4350b23c395190cecb22106015c042b544880e78a8485dd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page