docs: def update_high_level_stats(self):
          """
          updates high level statistics in bottom left of GUI.
          """
          self.clear_high_level_pars()
          dirtype = str(self.coordinates_box.GetValue())
          if dirtype == 'specimen':
              dirtype = 'DA-DIR'
          elif dirtype == 'geographic':
              dirtype = 'DA-DIR-GEO'
          elif dirtype == 'tilt-corrected':
              dirtype = 'DA-DIR-TILT'
          if str(self.level_box.GetValue()) == 'sample':
              high_level_type = 'samples'
          elif str(self.level_box.GetValue()) == 'site':
              high_level_type = 'sites'
          elif str(self.level_box.GetValue()) == 'location':
              high_level_type = 'locations'
          elif str(self.level_box.GetValue()) == 'study':
              high_level_type = 'study'
          high_level_name = str(self.level_names.GetValue())
          elements_type = self.UPPER_LEVEL_SHOW
          if high_level_name in list(self.high_level_means[high_level_type].keys()):
              mpars = []
              for mf in list(self.high_level_means[high_level_type][high_level_name].keys()):
                  if mf in list(self.high_level_means[high_level_type][high_level_name].keys()) and self.mean_fit == 'All' or mf == self.mean_fit:
                      if dirtype in list(self.high_level_means[high_level_type][high_level_name][mf].keys()):
                          mpar = deepcopy(
                              self.high_level_means[high_level_type][high_level_name][mf][dirtype])
                          if 'n' in mpar and mpar['n'] == 1:
                              mpar['calculation_type'] = "Fisher:"+mf
                              mpars.append(mpar)
                          elif mpar['calculation_type'] == 'Fisher by polarity':
                              for k in list(mpar.keys()):
                                  if k == 'color' or k == 'calculation_type':
                                      continue
                                  mpar[k]['calculation_type'] += ':'+k+':'+mf
                                  mpar[k]['color'] = mpar['color']
                                  if 'K' not in mpar[k] and 'k' in mpar[k]:
                                      mpar[k]['K'] = mpar[k]['k']
                                  if 'R' not in mpar[k] and 'r' in mpar[k]:
                                      mpar[k]['R'] = mpar[k]['r']
                                  if 'n_lines' not in mpar[k] and 'n' in mpar[k]:
                                      mpar[k]['n_lines'] = mpar[k]['n']
                                  mpars.append(mpar[k])
                          else:
                              mpar['calculation_type'] += ":"+mf
                              mpars.append(mpar)
              self.switch_stats_button.SetRange(0, len(mpars)-1)
              self.show_high_levels_pars(mpars)
              if self.ie_open:
                  self.ie.switch_stats_button.SetRange(0, len(mpars)-1)