code: def cyvcf_add_filter(rec, name):
      
      if rec.FILTER:
          filters = rec.FILTER.split(";")
      else:
          filters = []
      if name not in filters:
          filters.append(name)
          rec.FILTER = filters
      return rec
docs: Add a FILTER value to a cyvcf2 record