Skip to content

o-mdr/pa-pattern-complexity

Repository files navigation

Physical activity pattern complexity analysis

This project came up from my PhD research at Glasgow Caledonian University. It contains source code for analysis of objectively measured physical activity.

CircleCI

Results

This repository mostly contains the source code. Data is available in a separate data repository. This because the size of data is quite large and it's easier to separate intermediate data processing from the released data sets.

Getting Started

Tested on Ubuntu 20.04 LTS system, you may need to adjust scripts for other platforms. C++ code also works on Windows platforms (x86 and x64), but scripting is only available on Ubuntu (or similar Linux systems).

git clone https://github.com/o-mdr/pa-pattern-complexity.git
cd pa-pattern-complexity
sudo ./script/bootstrap
./script/download-data

Prerequisites

./script/bootstrap contains all the required software. To minimise friction consider using Ubuntu system for analysis.

Data sources

The following data sources are used in this project:

Running the build

# Using meson build system
meson setup builddir
meson compile -C builddir

# Or you could use Visual Studio, open solution file in
# src\nhanes.vs.sln

Running data cleanup

Described in NHANES Data cleanup.

Built With

Contributing

Any contributions are welcome, please read contributing guide for the process for submitting pull requests. Code of Conduct: contributor covenant.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Acknowledgments

FAQ

Q: Download script crashes, I think this is because my machine ran out of memory.

A: Conversion from XPT to CSV is done inefficiently. A workaround for this is to increase a swap file. On my machine 16 GB RAM + 16 GB swap file seem to work OK.

Authors

  • Oleksii Mandrychenko - Initial work

License

Apache License, Version 2.0

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages