code: def mqc_add_config(conf, conf_path=None):
      
      global fn_clean_exts, fn_clean_trim
      for c, v in conf.items():
          if c == 'sp':
              # Merge filename patterns instead of replacing
              sp.update(v)
              logger.debug("Added to filename patterns: {}".format(v))
          elif c == 'extra_fn_clean_exts':
              # Prepend to filename cleaning patterns instead of replacing
              fn_clean_exts[0:0] = v
              logger.debug("Added to filename clean extensions: {}".format(v))
          elif c == 'extra_fn_clean_trim':
              # Prepend to filename cleaning patterns instead of replacing
              fn_clean_trim[0:0] = v
              logger.debug("Added to filename clean trimmings: {}".format(v))
          elif c in ['custom_logo'] and v:
              # Resolve file paths - absolute or cwd, or relative to config file
              fpath = v
              if os.path.exists(v):
                  fpath = os.path.abspath(v)
              elif conf_path is not None and os.path.exists(os.path.join(os.path.dirname(conf_path), v)):
                  fpath = os.path.abspath(os.path.join(os.path.dirname(conf_path), v))
              else:
                  logger.error("Config '{}' path not found, skipping ({})".format(c, fpath))
                  continue
              logger.debug("New config '{}': {}".format(c, fpath))
              update({c: fpath})
          else:
              logger.debug("New config '{}': {}".format(c, v))
              update({c: v})
docs: Add to the global config with given MultiQC config dict