Skip to content

aidanacquah/rap_wearables

 
 

Repository files navigation

Using wearables data on the RAP

Note (2022-12-19): R code in Jupyter notebooks is currently not rendering correctly on GitHub. To view notebooks 2-4 with correct formatting, please download them.

What is this repository?

This repository provides a worked example of using wearables data available in UK Biobank for an analysis associating physical activity level with risk of incident cardiovascular disease. Analyses are based on this paper and this paper.

What is this repository not?

Analytic decisions should be made in the context of each research project. Choices in this repository reflect choices of the authors in the linked papers and the code authors, and should not be interpreted as definitive or widely generalisable. This repository is associated with the authors alone, and is not endorsed by UK Biobank.

About this repository

This repository contains four Jupyter notebooks for analysing wearables data with the RAP. These notebooks describe:

  • (1) Accessing data using the RAP
  • (2) Preparing data for analysis
  • (3) Exploring the wearables component of the data
  • (4) Conducting an analysis associating physical activity level with risk of incident cardiovascular disease

Code in this repository is a mixture of Python and R. Aside from the first notebook, which is run using a Spark cluster setup on the RAP system where R is not currently available, this reflects personal choice.

Visual inspection of the data is invaluable for understanding what the code is doing. The worked example does not contain much visual inspection, to avoid printing participant data on the internet. Add statements to get a feel for the data as you work through the tutorials (e.g. head(), str() statements in R). But don't commit or publish results of these!

image Illustration of the processing pipeline in this repository.

Question? Bugs?

If you have a question, feel free to add an issue on GitHub or email Rosemary Walmsley.

There are probably bugs. If you find them, please let us know! Again, add an issue on GitHub or email Rosemary Walmsley.

Credits

This worked example draws on several earlier examples and tutorials:

It was written by Rosemary Walmsley and Junayed Naushad, with contributions and advice from Ondrej Klempir, Aiden Doherty, and Ben Busby.

If you use this repo for a research paper, please cite:

If you use this repo for a technical report, please cite:

About

A demo/example pipeline for analysing wearables data using the RAP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 100.0%