Skip to main content

Analysis package for actigraphy data

Project description

https://img.shields.io/badge/License-GPL%20v3-blue.svg https://gitlab.com/ghammad/pyActigraphy/badges/master/pipeline.svg https://gitlab.com/ghammad/pyActigraphy/badges/master/coverage.svg https://zenodo.org/badge/DOI/10.5281/zenodo.2537921.svg

pyActigraphy

Open-source python package for actigraphy data analysis.

This package is meant to provide a comprehensive set of tools to:

  • read actigraphy raw data files with various formats

  • calculate typical wake/sleep cycle-related variables (ex: IS, IV, …)

  • perform complex analyses (ex: FDA, SSA, HMM, …)

Requirements

  • python 3.X

  • joblib

  • pandas

  • numba

  • numpy

  • pyexcel

  • pyexcel-ods3

  • scipy

  • statsmodels

Installation

In a (bash) shell, simply type:

  • For users:

pip install pyActigraphy

To update the package:

pip install -U pyActigraphy

It is strongly recommended to use the latest version of the pyActigraphy package.

  • For developers:

git clone git@github.com:ghammad/pyActigraphy.git
cd pyActigraphy/
git checkout develop
pip install -e .

Quick start

The following example illustrates how to calculate the interdaily stability with the pyActigraphy package:

>>> import pyActigraphy
>>> rawAWD = pyActigraphy.io.read_raw_awd(fpath + 'SUBJECT_01.AWD')
>>> rawAWD.IS()
0.6900175913031027
>>> rawAWD.IS(freq='30min', binarize=True, threshold=4)
0.6245582891144925
>>> rawAWD.IS(freq='1H', binarize=False)
0.5257020914453097

Contributing

There are plenty of ways to contribute to this package, including (but not limiting to):

  • report bugs (and, ideally, how to reproduce the bug)

  • suggest improvements

  • improve the documentation

  • hug or high-five the authors when you meet them!

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU GPL-3.0 License - see the LICENSE file for details

Acknowledgments

  • Aubin Ardois @aardoi developed the first version of the MTN class during his internship at the CRC, in May-August 2018.

  • The CRC colleagues for their support, ideas, etc.

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

pyActigraphy-0.1.tar.gz (178.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyActigraphy-0.1-py3-none-any.whl (193.4 kB view details)

Uploaded Python 3

File details

Details for the file pyActigraphy-0.1.tar.gz.

File metadata

  • Download URL: pyActigraphy-0.1.tar.gz
  • Upload date:
  • Size: 178.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for pyActigraphy-0.1.tar.gz
Algorithm Hash digest
SHA256 c6d088d3c5af133b763a67f6ea3342955fb6bc443ae414d77f6a5cf8db6f3adc
MD5 ca114b5afe62a84b37fa7b7f70d25bb7
BLAKE2b-256 411c1c5b3c46c3e4ae92894d6c8735c7b5d0f2be2f47ae1a0b3ccf2de918e997

See more details on using hashes here.

File details

Details for the file pyActigraphy-0.1-py3-none-any.whl.

File metadata

  • Download URL: pyActigraphy-0.1-py3-none-any.whl
  • Upload date:
  • Size: 193.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for pyActigraphy-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62debd90257b6d949c6ac71998166c4bffb3525c1da879c490d140639db4b5ca
MD5 9d9d1cccffabb9df716d1eddc0f4d795
BLAKE2b-256 90b9c8a0f440540eb2610cb35d06412139e9259eb9181406325e63d627d559d0

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