pyActigraphy


NamepyActigraphy JSON
Version 1.2.2 PyPI version JSON
download
home_pagehttps://github.com/ghammad/pyActigraphy
SummaryAnalysis package for actigraphy data
upload_time2024-06-19 11:53:38
maintainerNone
docs_urlNone
authorGrégory Hammad
requires_pythonNone
licenseGNU GPL-3.0
keywords actigraphy actimetry analysis python open-source
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg
  :target: https://www.gnu.org/licenses/gpl-3.0
.. image:: https://gitlab.com/ghammad/pyActigraphy/badges/master/pipeline.svg?key_text=CI+tests
  :target: https://gitlab.com/ghammad/pyActigraphy/commits/master
.. .. image:: https://gitlab.com/ghammad/pyActigraphy/badges/master/coverage.svg
..   :target: https://gitlab.com/ghammad/pyActigraphy/commits/master
.. image:: https://img.shields.io/pypi/v/pyActigraphy.svg
  :target: https://pypi.org/project/pyActigraphy
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.2537920.svg
  :target: https://doi.org/10.5281/zenodo.2537920
.. image:: https://bestpractices.coreinfrastructure.org/projects/6933/badge
  :target: https://bestpractices.coreinfrastructure.org/projects/6933
.. image:: https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg
  :target: CODE_OF_CONDUCT.md


**pyActigraphy**
================
Open-source python package for actigraphy and light exposure data visualization and analysis.


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

* read native actigraphy data files with various formats:

  * Actigraph: wGT3X-BT
  * CamNtech: Actiwatch 4, 7, L(-Plus) and MotionWatch 8
  * Condor Instrument: ActTrust 2
  * Daqtix: Daqtometer
  * Respironics: Actiwatch 2 and Actiwatch Spectrum (plus)
  * Tempatilumi (CE Brasil)

..

* **NEW** read actigraphy data format from the `MESA dataset <https://sleepdata.org/datasets/mesa>`_, hosted by the `National Sleep Research Resource <https://sleepdata.org>`_.

* **NEW** read actigraphy data files produced by the `accelerometer <https://biobankaccanalysis.readthedocs.io/en/latest/index.html>`_ package that can be used to calibrate and convert raw accelerometer data recorded with:

  * Axivity: AX3, device used by UK Biobank,
  * Activinsights: GENEActiv, used by the Whitehall II study.

..

* **NEW** read light exposure data recorded by the aforementioned devices (when available)

* clean the raw data and mask spurious periods of inactivity

* produce activity profile plots

* visualize sleep agendas and compute summary statistics

* calculate typical wake/sleep cycle-related variables:

  * Non-parametric rest-activity variables: IS(m), IV(m), RA
  * Activity or Rest  fragmentation: kRA, kAR
  * Sleep regularity index (SRI)

..

* **NEW** compute light exposure metrics (TAT, :math:`MLit^{500}`, summary statistics, ...)

* automatically detect rest periods using various algorithms (Cole-Kripke, Sadeh, ..., Crespo, Roenneberg)

* perform complex analyses:

  * Cosinor analysis
  * Detrended Fluctuation Analysis (DFA)
  * Functional Linear Modelling (FLM)
  * Locomotor Inactivity During Sleep (LIDS)
  * Singular Spectrum Analysis (SSA)
  * and much more...

Citation
========

We are very pleased to announce that the `v1.0 <https://github.com/ghammad/pyActigraphy/releases/tag/v1.0>`_ version of the pyActigraphy package has been published. So, if you find this package useful in your research, please consider citing:

  Hammad G, Reyt M, Beliy N, Baillet M, Deantoni M, Lesoinne A, et al. (2021) pyActigraphy: Open-source python package for actigraphy data visualization and    analysis. PLoS Comput Biol 17(10): e1009514. https://doi.org/10.1371/journal.pcbi.1009514

pyLight
=======

In the context of the Daylight Academy Project, `The role of daylight for humans <https://daylight.academy/projects/state-of-light-in-humans>`_ and
thanks to the support of its members, Dr. Mirjam Münch and Prof. `Manuel Spitschan <https://github.com/spitschan>`_,
a pyActigraphy module for analysing light exposure data has been developed, **pyLight**.
This module is part of the Human Light Exposure Database and is included in pyActigraphy version `v1.1 <https://github.com/ghammad/pyActigraphy/releases/tag/v1.1>`_ and higher.

A manuscript describing the *pyLight* module is available as a `preprint <https://osf.io/msk9n/>`_.

Code and documentation
======================

The pyActigraphy package is open-source and its source code is accessible `online <https://github.com/ghammad/pyActigraphy>`_.


An online documentation of the package is also available `here <https://ghammad.github.io/pyActigraphy/index.html>`_.
It contains `notebooks <https://ghammad.github.io/pyActigraphy/tutorials.html>`_ illustrating various functionalities of the package. Specific tutorials for the processing and the analysis of light exposure data with pyLight are also available.

Installation
============

In a (bash) shell, simply type:

* For users:

.. code-block:: shell

  pip3 install pyActigraphy

To update the package:

.. code-block:: shell

  pip3 install -U pyActigraphy


* For developers:

.. code-block:: shell

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

Quick start
===========

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

.. code-block:: python

  >>> import pyActigraphy
  >>> rawAWD = pyActigraphy.io.read_raw_awd('/path/to/your/favourite/file.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

Authors
=======

* **Grégory Hammad** `@ghammad <https://github.com/ghammad>`_ - *Initial and main developer*
* **Mathilde Reyt** `@ReytMathilde <https://github.com/ReytMathilde>`_

See also the list of `contributors <https://github.com/ghammad/pyActigraphy/contributors>`_ who participated in this project.

License
=======

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

Acknowledgments
===============

* **Aubin Ardois** `@aardoi <https://github.com/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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ghammad/pyActigraphy",
    "name": "pyActigraphy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "actigraphy actimetry analysis python open-source",
    "author": "Gr\u00e9gory Hammad",
    "author_email": "gregory.hammad@hotmail.fr",
    "download_url": "https://files.pythonhosted.org/packages/2d/8a/704705ae91eae56fa32dcf2279db0e22012fa2883db35f7dd0670f0a9be4/pyActigraphy-1.2.2.tar.gz",
    "platform": null,
    "description": ".. image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg\n  :target: https://www.gnu.org/licenses/gpl-3.0\n.. image:: https://gitlab.com/ghammad/pyActigraphy/badges/master/pipeline.svg?key_text=CI+tests\n  :target: https://gitlab.com/ghammad/pyActigraphy/commits/master\n.. .. image:: https://gitlab.com/ghammad/pyActigraphy/badges/master/coverage.svg\n..   :target: https://gitlab.com/ghammad/pyActigraphy/commits/master\n.. image:: https://img.shields.io/pypi/v/pyActigraphy.svg\n  :target: https://pypi.org/project/pyActigraphy\n.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.2537920.svg\n  :target: https://doi.org/10.5281/zenodo.2537920\n.. image:: https://bestpractices.coreinfrastructure.org/projects/6933/badge\n  :target: https://bestpractices.coreinfrastructure.org/projects/6933\n.. image:: https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg\n  :target: CODE_OF_CONDUCT.md\n\n\n**pyActigraphy**\n================\nOpen-source python package for actigraphy and light exposure data visualization and analysis.\n\n\nThis package is meant to provide a comprehensive set of tools to:\n\n* read native actigraphy data files with various formats:\n\n  * Actigraph: wGT3X-BT\n  * CamNtech: Actiwatch 4, 7, L(-Plus) and MotionWatch 8\n  * Condor Instrument: ActTrust 2\n  * Daqtix: Daqtometer\n  * Respironics: Actiwatch 2 and Actiwatch Spectrum (plus)\n  * Tempatilumi (CE Brasil)\n\n..\n\n* **NEW** read actigraphy data format from the `MESA dataset <https://sleepdata.org/datasets/mesa>`_, hosted by the `National Sleep Research Resource <https://sleepdata.org>`_.\n\n* **NEW** read actigraphy data files produced by the `accelerometer <https://biobankaccanalysis.readthedocs.io/en/latest/index.html>`_ package that can be used to calibrate and convert raw accelerometer data recorded with:\n\n  * Axivity: AX3, device used by UK Biobank,\n  * Activinsights: GENEActiv, used by the Whitehall II study.\n\n..\n\n* **NEW** read light exposure data recorded by the aforementioned devices (when available)\n\n* clean the raw data and mask spurious periods of inactivity\n\n* produce activity profile plots\n\n* visualize sleep agendas and compute summary statistics\n\n* calculate typical wake/sleep cycle-related variables:\n\n  * Non-parametric rest-activity variables: IS(m), IV(m), RA\n  * Activity or Rest  fragmentation: kRA, kAR\n  * Sleep regularity index (SRI)\n\n..\n\n* **NEW** compute light exposure metrics (TAT, :math:`MLit^{500}`, summary statistics, ...)\n\n* automatically detect rest periods using various algorithms (Cole-Kripke, Sadeh, ..., Crespo, Roenneberg)\n\n* perform complex analyses:\n\n  * Cosinor analysis\n  * Detrended Fluctuation Analysis (DFA)\n  * Functional Linear Modelling (FLM)\n  * Locomotor Inactivity During Sleep (LIDS)\n  * Singular Spectrum Analysis (SSA)\n  * and much more...\n\nCitation\n========\n\nWe are very pleased to announce that the `v1.0 <https://github.com/ghammad/pyActigraphy/releases/tag/v1.0>`_ version of the pyActigraphy package has been published. So, if you find this package useful in your research, please consider citing:\n\n  Hammad G, Reyt M, Beliy N, Baillet M, Deantoni M, Lesoinne A, et al. (2021) pyActigraphy: Open-source python package for actigraphy data visualization and    analysis. PLoS Comput Biol 17(10): e1009514. https://doi.org/10.1371/journal.pcbi.1009514\n\npyLight\n=======\n\nIn the context of the Daylight Academy Project, `The role of daylight for humans <https://daylight.academy/projects/state-of-light-in-humans>`_ and\nthanks to the support of its members, Dr. Mirjam M\u00fcnch and Prof. `Manuel Spitschan <https://github.com/spitschan>`_,\na pyActigraphy module for analysing light exposure data has been developed, **pyLight**.\nThis module is part of the Human Light Exposure Database and is included in pyActigraphy version `v1.1 <https://github.com/ghammad/pyActigraphy/releases/tag/v1.1>`_ and higher.\n\nA manuscript describing the *pyLight* module is available as a `preprint <https://osf.io/msk9n/>`_.\n\nCode and documentation\n======================\n\nThe pyActigraphy package is open-source and its source code is accessible `online <https://github.com/ghammad/pyActigraphy>`_.\n\n\nAn online documentation of the package is also available `here <https://ghammad.github.io/pyActigraphy/index.html>`_.\nIt contains `notebooks <https://ghammad.github.io/pyActigraphy/tutorials.html>`_ illustrating various functionalities of the package. Specific tutorials for the processing and the analysis of light exposure data with pyLight are also available.\n\nInstallation\n============\n\nIn a (bash) shell, simply type:\n\n* For users:\n\n.. code-block:: shell\n\n  pip3 install pyActigraphy\n\nTo update the package:\n\n.. code-block:: shell\n\n  pip3 install -U pyActigraphy\n\n\n* For developers:\n\n.. code-block:: shell\n\n  git clone git@github.com:ghammad/pyActigraphy.git\n  cd pyActigraphy/\n  git checkout develop\n  pip3 install -e .\n\nQuick start\n===========\n\nThe following example illustrates how to calculate the interdaily stability\nwith the pyActigraphy package:\n\n.. code-block:: python\n\n  >>> import pyActigraphy\n  >>> rawAWD = pyActigraphy.io.read_raw_awd('/path/to/your/favourite/file.AWD')\n  >>> rawAWD.IS()\n  0.6900175913031027\n  >>> rawAWD.IS(freq='30min', binarize=True, threshold=4)\n  0.6245582891144925\n  >>> rawAWD.IS(freq='1H', binarize=False)\n  0.5257020914453097\n\n\nContributing\n============\n\nThere are plenty of ways to contribute to this package, including (but not limiting to):\n\n* report bugs (and, ideally, how to reproduce the bug)\n* suggest improvements\n* improve the documentation\n\nAuthors\n=======\n\n* **Gr\u00e9gory Hammad** `@ghammad <https://github.com/ghammad>`_ - *Initial and main developer*\n* **Mathilde Reyt** `@ReytMathilde <https://github.com/ReytMathilde>`_\n\nSee also the list of `contributors <https://github.com/ghammad/pyActigraphy/contributors>`_ who participated in this project.\n\nLicense\n=======\n\nThis project is licensed under the GNU GPL-3.0 License - see the `LICENSE <LICENSE>`_ file for details\n\nAcknowledgments\n===============\n\n* **Aubin Ardois** `@aardoi <https://github.com/aardoi>`_ developed the first version of the MTN class during his internship at the CRC, in May-August 2018.\n* The CRC colleagues for their support, ideas, etc.\n",
    "bugtrack_url": null,
    "license": "GNU GPL-3.0",
    "summary": "Analysis package for actigraphy data",
    "version": "1.2.2",
    "project_urls": {
        "Homepage": "https://github.com/ghammad/pyActigraphy"
    },
    "split_keywords": [
        "actigraphy",
        "actimetry",
        "analysis",
        "python",
        "open-source"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b602caf3e29d4901e3004990c96870a67c21498dc9d770a6e684b38c9a3d379",
                "md5": "0742773d1fa029b77edb8a1c1a33a60d",
                "sha256": "3199b8dde42f044f887f11ca333f60e85c4213dcc5bde742a4ecd2ca2c4d8e7f"
            },
            "downloads": -1,
            "filename": "pyActigraphy-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0742773d1fa029b77edb8a1c1a33a60d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 1934594,
            "upload_time": "2024-06-19T11:53:34",
            "upload_time_iso_8601": "2024-06-19T11:53:34.105788Z",
            "url": "https://files.pythonhosted.org/packages/9b/60/2caf3e29d4901e3004990c96870a67c21498dc9d770a6e684b38c9a3d379/pyActigraphy-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2d8a704705ae91eae56fa32dcf2279db0e22012fa2883db35f7dd0670f0a9be4",
                "md5": "f69d310313edf624852afb045cb81dd1",
                "sha256": "694a215f7c60d4f7693eaebb5baf8f4aab07d512de41ba2f4e78d585d4116c28"
            },
            "downloads": -1,
            "filename": "pyActigraphy-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f69d310313edf624852afb045cb81dd1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1801906,
            "upload_time": "2024-06-19T11:53:38",
            "upload_time_iso_8601": "2024-06-19T11:53:38.082194Z",
            "url": "https://files.pythonhosted.org/packages/2d/8a/704705ae91eae56fa32dcf2279db0e22012fa2883db35f7dd0670f0a9be4/pyActigraphy-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-19 11:53:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ghammad",
    "github_project": "pyActigraphy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyactigraphy"
}
        
Elapsed time: 0.39624s