Class Edit.Insert<C extends Compound>

java.lang.Object
org.biojava3.core.sequence.edits.Edit.AbstractEdit<C>
org.biojava3.core.sequence.edits.Edit.Insert<C>
All Implemented Interfaces:
Edit<C>
Enclosing interface:
Edit<C extends Compound>

public static class Edit.Insert<C extends Compound> extends Edit.AbstractEdit<C>
Edit implementation which allows us to insert a base at any position in a Sequence. Specifying 1 base is used to insert at the start and end of a Sequence. If you wish to carry out an in-sequence insertion then you specify the flanking base positions e.g.
   ACTG insert TT @ position 1   : TTACGT
   ACTG insert TT @ position 2,3 : ACTTGT
   ACTG insert A  @ position 4   : ACGTA
 
The code will raise exceptions if you attempt a single base edit with an insertion.
  • Constructor Details

    • Insert

      public Insert(String sequence, int position)
    • Insert

      public Insert(Sequence<C> sequence, int position)
    • Insert

      public Insert(String sequence, int start, int stop)
    • Insert

      public Insert(Sequence<C> sequence, int start, int stop)