def _do_analysis(options):
module = _function_location(options)<EOL>core_results = _call_analysis_function(options, module)<EOL>if module == '<STR_LIT>' and ('<STR_LIT>' in list(options.keys())):<EOL><INDENT>fit_results = _fit_models(options, core_results)<EOL><DEDENT>else:<EOL><INDENT>fit_results = None<EOL><DEDENT>_save_results(options, module, core_results, fit_results)<EOL>
Do analysis for a single run, as specified by options.

Parameters
----------
options : dict
    Option names and values for analysis