code: public Allele leftHardClip(final String pattern) throws IllegalAlphabetException, AlleleException, IllegalSymbolException {
          int start = this.getStart();
  
          SymbolList copy = DNATools.createDNA(sequence.seqString());
          while (copy.seqString().startsWith(pattern)) {
              copy.edit(new Edit(1, pattern.length(), SymbolList.EMPTY_LIST));
              start += pattern.length();
          }
  
          return builder()
              .withContig(this.getContig())
              .withStart(start)
              .withEnd(this.getEnd())
              .withSequence(copy)
              .withLesion(this.lesion)
              .build();
      }
docs: A method to simulate hard clipping (removal) of leftmost sequence, for example synthesized sequence representing molecular barcodes or target capture probes (primers)
  @param pattern sequence (will be strictly matched, no regular expressions)
  @return new Allele with clipped sequence
  @throws IllegalAlphabetException
  @throws AlleleException
  @throws IllegalSymbolException