Python API Reference¶
Table of Contents
Reading actigraphy data¶
Raw file reader¶
Uniform API to read multiple actigraphy data formats. Currently, the supported formats are:
wGT3X-BT, Actigraph (.agd file format only);
Actiwatch 4, 7, L(-Plus) and MotionWatch 8, CamNtech (.awd and .mtn);
ActTrust 2, Condor Instruments (.txt);
Daqtometer, Daqtix (.csv);
Actiwatch 2 and Actiwatch Spectrum Plus, Philips Respironics (.csv)
Tempatilumi (CE Brasil)
MESA dataset file format
Biobankaccelerometer file format (BBA)
Associated functions:
|
Reader function for raw AWD file. |
|
Reader function for .txt file recorded by ActTrust (Condor Instruments) |
|
Reader function for raw AWD file. |
|
Reader function for files produced by the biobankAccelerometerAnalysis package. |
|
Raw object from .csv file recorded by Daqtometers (Daqtix, Germany) |
|
Reader function for MESA files |
|
Reader function for raw MTN file. |
|
Reader function for raw Respironics file. |
|
Raw object from .txt file recorded by Tempatilumi (CE Brasil) |
These functions return a BaseRaw object. which is the main class in
pyActigraphy: pyActigraphy.io.BaseRaw
Batch reader¶
Reading actigraphy files by batch:
|
Reader function for multiple raw files. |
This function return a RawReader object: pyActigraphy.io.RawReader
Spurious activity masking¶
Masking:
pyActigraphy.filters.FiltersMixin
Log files¶
Base log:
pyActigraphy.log.BaseLog
Start/Stop time log:
pyActigraphy.log.SSTLog
Rest-Activity Rhythms¶
Non-parametric and transition probability methods:
pyActigraphy.metrics.MetricsMixin
Rest and Activity reports¶
Activity report:
pyActigraphy.reports.ActivityReport
Rest-activity scoring and sleep diary¶
Rest-activity scoring:
pyActigraphy.sleep.ScoringMixin
Sleep diary:
pyActigraphy.sleep.SleepDiary
Sleep bout identification:
pyActigraphy.sleep.SleepBoutMixin
Light-specific modules¶
Light recording class:
pyActigraphy.light.LightRecording
Light exposure metrics:
pyActigraphy.light.LightMetricsMixin
Generic light class example:
pyActigraphy.light.GenLightDevice
Analysis¶
Cosinor analysis:
pyActigraphy.analysis.Cosinor
Functional linear modeling:
pyActigraphy.analysis.FLM
Fractality analysis:
pyActigraphy.analysis.Fractal
Locomotor inactivity during sleep (LIDS):
pyActigraphy.analysis.LIDS
Singular spectrum analysis :
pyActigraphy.analysis.SSA