code: def ignore_samples(self, data):
          
          try:
              if isinstance(data, OrderedDict):
                  newdata = OrderedDict()
              elif isinstance(data, dict):
                  newdata = dict()
              else:
                  return data
              for k,v in data.items():
                  # Match ignore glob patterns
                  glob_match = any( fnmatch.fnmatch(k, sn) for sn in config.sample_names_ignore )
                  re_match = any( re.match(sn, k) for sn in config.sample_names_ignore_re )
                  if not glob_match and not re_match:
                      newdata[k] = v
              return newdata
          except (TypeError, AttributeError):
              return data
docs: Strip out samples which match `sample_names_ignore`