Skip to content

Analytics for the Covid Symptom Study through ExeTera

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE.txt
Notifications You must be signed in to change notification settings

deng113jie/ExeTeraCovid

ExeTeraCovid

Welcome to the ExeTeraCovid Readme!

PyPI version

Requires python 3.7+

This page and the accompanying wiki show you how to use ExeTera to create reproducible analysis pipelines for the Covid Symptom Study dataset.

This project contains a set of notebooks, scripts and algorithms to help you analyse and write new analyses for the Covid Symptom Study data. ExeTera is a software developed by King's College London to provide data curation for the Covid Symptom Study dataset. The dataset is collected using the Covid Symptom Study app, developed by Zoe Global Ltd with input from King's College London, the Massachusetts General Hospital, Lund University Sweden, and Uppsala University, Sweden. This project contains the following:

  • Notebooks: Python notebooks containing ready to run analyses
  • Scripts: Python scripts containing ready to run analyses
  • Algorithms: A number of useful algorithms for cleaning / processing of Covid Symptom Study data, to be used in your own scripts
  • Processing: A number of useful pieces of functionality, to be used in your own scripts

Installation

If you want to make heavy use of the jupyter notebooks that come with ExeTeraCovid, it is recommended that you clone this repository. You should install it by navigating to the top level of the repository and pip installing locally, as follows:

git clone [email protected]:kcl-bmeis/exeteracovid.git
cd exeteracovid
pip install -e .

If you just want to make use of ExeTera and ExeTeraCovid in your own scripts / code, you should use pip to install them:

pip install exeteracovid

This will fetch exeteracovid, exetera, and other python packages that it relies on.

Running analyses

Running analyses is a simple process:

  1. Fetch the dataset snapshot(s)
  2. Import the dataset, using exetera import
  3. Run the postprocessing script on the imported dataset, either via notebook or script
  4. Run analytics!

Fetch the dataset snapshot(s)

The Covid Symptom Study is delivered as a series of daily csv snapshots. If you do not otherwise have access to the snapshots as a research institution, you can get them from The Health Data Gateway.

Import the dataset

Importing the dataset requires the following:

  • The data snapshots
  • The schema file for the dataset covid_schema.json which can be found in this project
  • ExeTera and ExeTeraCovid, which you should have already installed
exetera import
-s path/to/covid_schema.json \
-i "patients:path/to/patient_data.csv, assessments:path/to/assessmentdata.csv, tests:path/to/covid_test_data.csv, diet:path/to/diet_study_data.csv" \
-o path/to/output_dataset_name.hdf5

Run the postprocessing script on the imported dataset

This can be done one of two ways:

  • Via python notebook using exeteracovid/notebooks/standard_processing.ipynb
  • Via python script using exeteracovid/scripts/standard_processing.py

Via python notebook

Fill in the fields for input_filename and output_filename, and then run the cell

Via python script

standard_processing -i path/to/input_dataset -o path/to/output_dataset -d

Arguments

  • -i/--input: The path and name of the import hdf5 file
  • -o/--output: The path and name of the processed hdf5 file
  • -d/--daily: A flag to indicate whether to generate daily assessments (optional)

Government Open Licence v3.0 attribution statement

The resources folder contains, amongst other resources, CSV files containing lsoa11cd geo-data that are required for certain scripts and are derived from data sources made available by https://data.gov.uk. These sources are used in accordance with the Open Government Licence V3.0

About

Analytics for the Covid Symptom Study through ExeTera

Resources

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published