partially-finished analysis function analyze_fogrun.r to process fogrun data. currently, error propagation does not work!