Convert partition result prior to calling frequencies and use slurp to read from file