docs: def analyze(self, analysis_set = '', analysis_directory = None):
          '''This function runs the analysis and creates the plots and summary file.'''
          self.calculate_metrics(analysis_set, analysis_directory = analysis_directory)
          if self.generate_plots:
              self.plot(analysis_set, analysis_directory = analysis_directory)