paat


Namepaat JSON
Version 1.0.0b6 PyPI version JSON
download
home_pagehttps://github.com/Trybnetic/paat
SummaryA comprehensive toolbox to analyse and model raw physical activity data
upload_time2024-10-03 13:18:43
maintainerNone
docs_urlNone
authorMarc Weitz
requires_python<3.12,>=3.9
licenseMIT
keywords medical-informatics physical-activity health-science actigraph accelerometry
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =========================================
Physical Activity Analysis Toolbox (PAAT)
=========================================

    **Note:** This package is currently under development and the API might change
    anytime! For reproducible versions, see `zenodo <https://doi.org/10.5281/zenodo.13885706>`_.


.. image:: https://github.com/Trybnetic/paat/actions/workflows/python-test.yml/badge.svg
 :target: https://github.com/Trybnetic/paat/actions/workflows/python-test.yml
 :alt: Tests

.. image:: https://codecov.io/gh/Trybnetic/paat/branch/main/graph/badge.svg
  :target: https://codecov.io/gh/Trybnetic/paat
  :alt: Coverage

.. image:: https://readthedocs.org/projects/paat/badge/?version=latest
 :target: https://paat.readthedocs.io/en/latest/?badge=latest
 :alt: Documentation Status

.. image:: https://img.shields.io/github/license/trybnetic/paat.svg
 :target: https://github.com/trybnetic/paat/blob/master/LICENSE.txt
 :alt: License

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.13885749.svg
  :target: https://doi.org/10.5281/zenodo.13885749
  :alt: zenodo

The physical activity analysis toolbox (PAAT) is a comprehensive toolbox to
analyze raw acceleration data. We developed all code mainly for analyzing
ActiGraph data (GT3X files) in large sample study settings where manual annotation
and analysis is not feasible. Most functions come along with scientific papers
describing the methodology in detail. Even though, the package was and is primarily
develop for analyzing ActiGraph data, we warmly welcome contributions for other
clinical sensors as well!


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

At the moment, the easiest way to install *paat* directly from GitHub by running:

.. code:: bash

    pip install paat


Usage
=====

For now, several functions to work with raw data from ActiGraph devices are
implemented while others are still work in progress. The following code snippet
should give you a brief overview and idea on how to use this package. Further
examples and more information on the functions can be found in the documentation.

.. code-block:: python

    # Load data from file
    data, sample_freq = paat.read_gt3x('path/to/gt3x/file')

    # Detect non-wear time
    data.loc[:, "Non Wear Time"] = paat.detect_non_wear_time_hees2011(data, sample_freq)

    # Detect sleep episodes
    data.loc[:, "Time in Bed"] = paat.detect_time_in_bed_weitz2024(data, sample_freq)

    # Classify moderate-to-vigorous and sedentary behavior
    data.loc[:, ["MVPA", "SB"]] = paat.calculate_pa_levels(
      data, 
      sample_freq, 
      mvpa_cutpoint=.069, 
      sb_cutpoint=.015
    )

    # Merge the activity columns into one labelled column. columns indicates the
    # importance of the columns, later names are more important and will be kept
    data.loc[:, "Activity"] = paat.create_activity_column(
      data, 
      columns=["SB", "MVPA", "Time in Bed", "Non Wear Time"]
    )

    # Remove the other columns after merging
    data =  data[["X", "Y", "Z", "Activity"]]



Getting involved
================

The *paat* project welcomes help in the following ways:

* Making Pull Requests for
  `code <https://github.com/trybnetic/paat/tree/master/paat>`_,
  `tests <https://github.com/trybnetic/paat/tree/master/tests>`_
  or `documentation <https://github.com/trybnetic/paat/tree/master/doc>`_.
* Commenting on `open issues <https://github.com/trybnetic/paat/issues>`_
  and `pull requests <https://github.com/trybnetic/paat/pulls>`_.
* Helping to answer `questions in the issue section
  <https://github.com/trybnetic/paat/labels/question>`_.
* Creating feature requests or adding bug reports in the `issue section
  <https://github.com/trybnetic/paat/issues/new>`_.


Authors and Contributers
========================

*paat* was mainly developed by
`Marc Weitz <https://github.com/trybnetic>`_
and `Shaheen Syed <https://github.com/shaheen-syed/>`_. For the full list of
contributors have a look at `Github's Contributor summary
<https://github.com/trybnetic/paat/contributors>`_.

Currently, it is maintained by `Marc Weitz <https://github.com/trybnetic>`_. In case
you want to contact the project maintainers, please send an email to
marc [dot] weitz [at] uit [dot] no


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

This work was supported by the High North Population Studies at UiT The Arctic
University of Norway.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Trybnetic/paat",
    "name": "paat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.9",
    "maintainer_email": null,
    "keywords": "medical-informatics, physical-activity, health-science, actigraph, accelerometry",
    "author": "Marc Weitz",
    "author_email": "marc.weitz@uit.no",
    "download_url": "https://files.pythonhosted.org/packages/62/3a/1161d7d301d814719f93ddb1f727d95f545a64114b78b63b0ccaca457b2e/paat-1.0.0b6.tar.gz",
    "platform": null,
    "description": "=========================================\nPhysical Activity Analysis Toolbox (PAAT)\n=========================================\n\n    **Note:** This package is currently under development and the API might change\n    anytime! For reproducible versions, see `zenodo <https://doi.org/10.5281/zenodo.13885706>`_.\n\n\n.. image:: https://github.com/Trybnetic/paat/actions/workflows/python-test.yml/badge.svg\n :target: https://github.com/Trybnetic/paat/actions/workflows/python-test.yml\n :alt: Tests\n\n.. image:: https://codecov.io/gh/Trybnetic/paat/branch/main/graph/badge.svg\n  :target: https://codecov.io/gh/Trybnetic/paat\n  :alt: Coverage\n\n.. image:: https://readthedocs.org/projects/paat/badge/?version=latest\n :target: https://paat.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/github/license/trybnetic/paat.svg\n :target: https://github.com/trybnetic/paat/blob/master/LICENSE.txt\n :alt: License\n\n.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.13885749.svg\n  :target: https://doi.org/10.5281/zenodo.13885749\n  :alt: zenodo\n\nThe physical activity analysis toolbox (PAAT) is a comprehensive toolbox to\nanalyze raw acceleration data. We developed all code mainly for analyzing\nActiGraph data (GT3X files) in large sample study settings where manual annotation\nand analysis is not feasible. Most functions come along with scientific papers\ndescribing the methodology in detail. Even though, the package was and is primarily\ndevelop for analyzing ActiGraph data, we warmly welcome contributions for other\nclinical sensors as well!\n\n\nInstallation\n============\n\nAt the moment, the easiest way to install *paat* directly from GitHub by running:\n\n.. code:: bash\n\n    pip install paat\n\n\nUsage\n=====\n\nFor now, several functions to work with raw data from ActiGraph devices are\nimplemented while others are still work in progress. The following code snippet\nshould give you a brief overview and idea on how to use this package. Further\nexamples and more information on the functions can be found in the documentation.\n\n.. code-block:: python\n\n    # Load data from file\n    data, sample_freq = paat.read_gt3x('path/to/gt3x/file')\n\n    # Detect non-wear time\n    data.loc[:, \"Non Wear Time\"] = paat.detect_non_wear_time_hees2011(data, sample_freq)\n\n    # Detect sleep episodes\n    data.loc[:, \"Time in Bed\"] = paat.detect_time_in_bed_weitz2024(data, sample_freq)\n\n    # Classify moderate-to-vigorous and sedentary behavior\n    data.loc[:, [\"MVPA\", \"SB\"]] = paat.calculate_pa_levels(\n      data, \n      sample_freq, \n      mvpa_cutpoint=.069, \n      sb_cutpoint=.015\n    )\n\n    # Merge the activity columns into one labelled column. columns indicates the\n    # importance of the columns, later names are more important and will be kept\n    data.loc[:, \"Activity\"] = paat.create_activity_column(\n      data, \n      columns=[\"SB\", \"MVPA\", \"Time in Bed\", \"Non Wear Time\"]\n    )\n\n    # Remove the other columns after merging\n    data =  data[[\"X\", \"Y\", \"Z\", \"Activity\"]]\n\n\n\nGetting involved\n================\n\nThe *paat* project welcomes help in the following ways:\n\n* Making Pull Requests for\n  `code <https://github.com/trybnetic/paat/tree/master/paat>`_,\n  `tests <https://github.com/trybnetic/paat/tree/master/tests>`_\n  or `documentation <https://github.com/trybnetic/paat/tree/master/doc>`_.\n* Commenting on `open issues <https://github.com/trybnetic/paat/issues>`_\n  and `pull requests <https://github.com/trybnetic/paat/pulls>`_.\n* Helping to answer `questions in the issue section\n  <https://github.com/trybnetic/paat/labels/question>`_.\n* Creating feature requests or adding bug reports in the `issue section\n  <https://github.com/trybnetic/paat/issues/new>`_.\n\n\nAuthors and Contributers\n========================\n\n*paat* was mainly developed by\n`Marc Weitz <https://github.com/trybnetic>`_\nand `Shaheen Syed <https://github.com/shaheen-syed/>`_. For the full list of\ncontributors have a look at `Github's Contributor summary\n<https://github.com/trybnetic/paat/contributors>`_.\n\nCurrently, it is maintained by `Marc Weitz <https://github.com/trybnetic>`_. In case\nyou want to contact the project maintainers, please send an email to\nmarc [dot] weitz [at] uit [dot] no\n\n\nAcknowledgments\n===============\n\nThis work was supported by the High North Population Studies at UiT The Arctic\nUniversity of Norway.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A comprehensive toolbox to analyse and model raw physical activity data",
    "version": "1.0.0b6",
    "project_urls": {
        "Homepage": "https://github.com/Trybnetic/paat",
        "Repository": "https://github.com/Trybnetic/paat"
    },
    "split_keywords": [
        "medical-informatics",
        " physical-activity",
        " health-science",
        " actigraph",
        " accelerometry"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "05bd85a76240c4d39bae7afcaac8a911cceee03f69d201550f379ebd02d23eb5",
                "md5": "6f1d2d8ac68be8705bf280074d2232fa",
                "sha256": "911c74bc94806c5c1c5e90a1413fcdde7152ad65632e82a1224e288c9ca6c2e5"
            },
            "downloads": -1,
            "filename": "paat-1.0.0b6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6f1d2d8ac68be8705bf280074d2232fa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.9",
            "size": 29169910,
            "upload_time": "2024-10-03T13:18:36",
            "upload_time_iso_8601": "2024-10-03T13:18:36.517066Z",
            "url": "https://files.pythonhosted.org/packages/05/bd/85a76240c4d39bae7afcaac8a911cceee03f69d201550f379ebd02d23eb5/paat-1.0.0b6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "623a1161d7d301d814719f93ddb1f727d95f545a64114b78b63b0ccaca457b2e",
                "md5": "4659181c6512184401529f5a43a15d22",
                "sha256": "3b204ba608a8e4cf401eb6e0a641e4304099234d11ebbe5d3c8b1fea62228afa"
            },
            "downloads": -1,
            "filename": "paat-1.0.0b6.tar.gz",
            "has_sig": false,
            "md5_digest": "4659181c6512184401529f5a43a15d22",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.9",
            "size": 29154155,
            "upload_time": "2024-10-03T13:18:43",
            "upload_time_iso_8601": "2024-10-03T13:18:43.242083Z",
            "url": "https://files.pythonhosted.org/packages/62/3a/1161d7d301d814719f93ddb1f727d95f545a64114b78b63b0ccaca457b2e/paat-1.0.0b6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-03 13:18:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Trybnetic",
    "github_project": "paat",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "paat"
}
        
Elapsed time: 0.33774s