code: def run_analysis(self, argv):
          
          args = self._parser.parse_args(argv)
  
  
          sedfile = args.sed_file
  
          if is_not_null(args.config):
              configfile = os.path.join(os.path.dirname(sedfile), args.config)
          else:
              configfile = os.path.join(os.path.dirname(sedfile), 'config.yaml')
  
          nbins = _get_enum_bins(configfile)
  
          first = args.seed
          last = first + args.nsims
          flist = [sedfile.replace("_SEED.fits", "_%06i.fits" % seed)
                   for seed in range(first, last)]
          outfile = args.outfile
          summaryfile = args.summaryfile
  
  
          outtable = fill_output_table(
              flist, "SED", CollectSED.collist, nbins=nbins)
  
          if is_not_null(outfile):
              outtable.write(outfile)
  
          if is_not_null(summaryfile):
              summary = summarize_sed_results(outtable)
              summary.write(summaryfile)
docs: Run this analysis