Git Product home page Git Product logo

mysymptoms-safe-foods's Introduction

MySymptoms Safe Foods

Description

Python script that uses data from the MySymptoms app to find the safest foods for you to eat. Ideal for starting or restarting an elimination diet. As the app stands right now, the only analysis it provides is showing the most likely culprit for a given symptom. This list of culprits doesn't factor in intensity and only shows the top foods responsible.

Foods will be printed to an output file in order of safety. Safety is determined by the danger score, which is calculated by adding up all the associated symptom intensities.

Usage

Download "mysymptoms.csv"

1. Open the MySymptoms app.
2. Navigate to the "More" tab.
3. Select "Diary Report" then "CSV".
4. Send the CSV from your phone to the computer, wherever you are running this program.

Run mysymptoms.py on your csv file. Use -h for help. You can update config.json to configure the app and/or use command line arguments, which are all optional.

usage: mysymptoms.py [-h] [-i INPUT_FILE] [-o OUTPUT_FILE] [-c CONSUMABLES [CONSUMABLES ...]] [-s SYMPTOMS [SYMPTOMS ...]] [-m MIN_TIMES_CONSUMED] [-w SYMPTOM_WARNING_SCORE] [-soh SYMPTOM_ONSET_HOURS]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT_FILE, --input_file INPUT_FILE
                        csv input file (with extension)
  -o OUTPUT_FILE, --output_file OUTPUT_FILE
                        json output file (with extension)
  -c CONSUMABLES [CONSUMABLES ...], --consumables CONSUMABLES [CONSUMABLES ...]
                        list of consumables to analyze, for example, 'Breakfast', 'Snack', and 'Medication'
  -s SYMPTOMS [SYMPTOMS ...], --symptoms SYMPTOMS [SYMPTOMS ...]
                        list of symptoms to analyze
  -m MIN_TIMES_CONSUMED, --min_times_consumed MIN_TIMES_CONSUMED
                        lower threshold of when to analyze a consumable, for example the data may not be useful for a food you've only eaten once
  -w SYMPTOM_WARNING_SCORE, --symptom_warning_score SYMPTOM_WARNING_SCORE
                        the program will print out a warning once a consumable has an average symptom score that passes the given threshold
  -soh SYMPTOM_ONSET_HOURS, --symptom_onset_hours SYMPTOM_ONSET_HOURS
                        number of hours to look for symptoms after a consumable has been taken

mysymptoms-safe-foods's People

Contributors

zvanderwater15 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.