code: private String formatDnaAllele() {
  
  //        We are not considering this case since would mean there's no variant
  //        if self.mutation_type == '=':
  //            #No change.
  //            #example:
  //        101 A =
  //        return self.ref_allele + '='
  
          if (">".equals(mutationType)) {
              // SNP.
              // example:
              // 101 A > C
              return reference + '>' + alternate;
          } else if ("delins".equals(mutationType)) {
              // Indel.
              // example:
              // 112_117d elAGGTCAinsTG, 112_117d elinsTG
              return "del" + reference + "ins" + alternate;
          } else if ("del".equals(mutationType)) {
              // Delete, duplication.
              // example:
              // 1000_1003d elATG, 1000_1003d upATG
              return mutationType + reference;
          } else if ("dup".equals(mutationType)) {
              // Insertion normalized as duplication
              // example:
              // "ENST00000382869.3:c.1735+32dupA"
              return mutationType + alternate;
          } else if ("ins".equals(mutationType)) {
              // Insert.
              // example:
              // 1000_1001 insATG
              return mutationType + alternate;
          } else {
              throw new AssertionError("unknown mutation type: '" + mutationType + "'");
          }
      }
docs: Generate HGVS DNA allele.
  @return