code: def _clean_name(fname, data):
      
      for to_remove in dd.get_batches(data) + [dd.get_sample_name(data), data["sv"]["variantcaller"]]:
          for ext in ("-", "_"):
              if fname.startswith("%s%s" % (to_remove, ext)):
                  fname = fname[len(to_remove) + len(ext):]
          if fname.startswith(to_remove):
              fname = fname[len(to_remove):]
      return fname
docs: Remove standard prefixes from a filename before renaming with useful names.