def analyze_all(self, analysis_directory = None):
        '''This function runs the analysis and creates the plots and summary file.'''
        for analysis_set in self.analysis_sets:
            self.analyze(analysis_set, analysis_directory = analysis_directory)
This function runs the analysis and creates the plots and summary file.