code: def add_variant(self, chrom, pos, rs_id, ref, alt, qual, filt, info, form=None, genotypes=[]):
          
          variant_info = [chrom, pos, rs_id, ref, alt, qual, filt, info]
          if form:
              variant_info.append(form)
          for individual in genotypes:
              variant_info.append(individual)
          
          variant_line = '\t'.join(variant_info)
          variant = format_variant(
              line = variant_line, 
              header_parser = self.metadata, 
              check_info = self.check_info
          )
          
          if not (self.split_variants and len(variant['ALT'].split(',')) > 1):
              self.variants.append(variant)
              
          # If multiple alternative and split_variants we must split the variant                 
          else:
              for splitted_variant in split_variants(
                                                      variant_dict=variant, 
                                                      header_parser=self.metadata, 
                                                      allele_symbol=self.allele_symbol):
                  self.variants.append(splitted_variant)
docs: Add a variant to the parser.
          
          This function is for building a vcf. It takes the relevant parameters 
          and make a vcf variant in the proper format.