I'm not happy with this function name.  I think it should be something more like "get_input_for_analysis".  Suggestions would be appreciated.