code: def _installed_snpeff_genome(base_name, config):
      
      snpeff_config_file = os.path.join(config_utils.get_program("snpeff", config, "dir"),
                                        "snpEff.config")
      if os.path.exists(snpeff_config_file):
          data_dir = _find_snpeff_datadir(snpeff_config_file)
          dbs = [d for d in sorted(glob.glob(os.path.join(data_dir, "%s*" % base_name)), reverse=True)
                 if os.path.isdir(d)]
      else:
          data_dir = None
          dbs = []
      if len(dbs) == 0:
          raise ValueError("No database found in %s for %s" % (data_dir, base_name))
      else:
          return data_dir, os.path.split(dbs[0])[-1]
docs: Find the most recent installed genome for snpEff with the given name.