code: def _serialize_record(self, record):
          
          f = self._empty_to_dot
          row = [record.CHROM, record.POS]
          row.append(f(";".join(record.ID)))
          row.append(f(record.REF))
          if not record.ALT:
              row.append(".")
          else:
              row.append(",".join([f(a.serialize()) for a in record.ALT]))
          row.append(f(record.QUAL))
          row.append(f(";".join(record.FILTER)))
          row.append(f(self._serialize_info(record)))
          if record.FORMAT:
              row.append(":".join(record.FORMAT))
          row += [
              self._serialize_call(record.FORMAT, record.call_for_sample[s])
              for s in self.header.samples.names
          ]
          print(*row, sep="\t", file=self.stream)
docs: Serialize whole Record