Skip to content

Snakemake pipeline for graph generation of blood glucose measurements over time

Notifications You must be signed in to change notification settings

oskarvid/accu-chek-mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

accu-chek-mobile

Travis Build Status
For analysis of blood glucose data from an Accu-Chek Mobile.

Features

Keep in mind that not everything can be plotted if you have too few data points. The minimum to plot everything is 163 data points. The legend will still refer to the lines that may be missing if you have too few data points.

  1. Colors alternate between days to allow for easy differentiation between one day and another.
  2. If the user correctly marks each blood glucose measurement it will show in the graph, see the sample graph for an example. This makes it easier to spot potential patterns.
  3. 24h plot can reveal general trends from eating habits.
  4. Histogram can tell if the readings lean more to the upper or lower range.

Example graph1

Example graph2

Example graph3

Example graph4

Example graph5

Example graph6

Example graph7

Example graph8

Example graph9

Example graph10

These example graphs were generated with normally distributed random data.

Dependencies

Install instructions for docker: https://docs.docker.com/install/

Instructions

  1. Put your csv file in the Inputs directory
  2. Either name it test.csv or edit the Snakefile and change the name in the first rule.
  3. Run ./start-script. The docker image will download automatically the first time you run the script.
  4. After successful execution the graph is found in the Outputs folder.

Some comments

At the moment the first snakemake rule is nonsensical since it only copies a file from the Inputs directory to the Outputs directory, it's there because I use it to copy files straight from the Accu-Chek meter.

About

Snakemake pipeline for graph generation of blood glucose measurements over time

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published