Class NucleotideInsertion

    • Constructor Detail

      • NucleotideInsertion

        public NucleotideInsertion​(boolean onlyPredicted,
                                   NucleotideRange position,
                                   NucleotideSeqDescription seq)
        Parameters:
        onlyPredicted - whether the change was only predicted
        position - range of length one giving the insertion position
        seq - description of the inserted sequence
    • Method Detail

      • buildWithOffsetWithoutSeqDescription

        public static NucleotideInsertion buildWithOffsetWithoutSeqDescription​(boolean onlyPredicted,
                                                                               int firstPos,
                                                                               int firstOffset,
                                                                               int lastPos,
                                                                               int lastOffset)
        Build without any sequence description
        Parameters:
        onlyPredicted - whether or not to add marker for "only predicted"
        firstPos - begin position of insertion
        firstOffset - offset for begin position of insertion
        lastPos - end position of insertion
        lastOffset - offset for end position of insertion
        Returns:
        Resulting NucleotideInsertion
      • buildWithOffsetWithLength

        public static NucleotideInsertion buildWithOffsetWithLength​(boolean onlyPredicted,
                                                                    int firstPos,
                                                                    int firstOffset,
                                                                    int lastPos,
                                                                    int lastOffset,
                                                                    int insertedLength)
        Build with length information
        Parameters:
        onlyPredicted - whether or not to add marker for "only predicted"
        firstPos - begin position of insertion
        firstOffset - offset for begin position of insertion
        lastPos - end position of insertion
        lastOffset - offset for end position of insertion
        insertedLength - the number of inserted bases
        Returns:
        Resulting NucleotideInsertion
      • buildWithOffsetWithSequence

        public static NucleotideInsertion buildWithOffsetWithSequence​(boolean onlyPredicted,
                                                                      int firstPos,
                                                                      int firstOffset,
                                                                      int lastPos,
                                                                      int lastOffset,
                                                                      String seq)
        Build with sequence
        Parameters:
        onlyPredicted - whether or not to add marker for "only predicted"
        firstPos - begin position of insertion
        firstOffset - offset for begin position of insertion
        lastPos - end position of insertion
        lastOffset - offset for end position of insertion
        seq - the inserted sequence
        Returns:
        Resulting NucleotideInsertion
      • buildWithLength

        public static NucleotideInsertion buildWithLength​(boolean onlyPredicted,
                                                          int firstPos,
                                                          int lastPos)
        Build without offset and no sequence description
        Parameters:
        onlyPredicted - whether or not to add marker for "only predicted"
        firstPos - begin position of insertion
        lastPos - end position of insertion
        Returns:
        Resulting NucleotideInsertion
      • buildWithLength

        public static NucleotideInsertion buildWithLength​(boolean onlyPredicted,
                                                          int firstPos,
                                                          int lastPos,
                                                          int insertedLength)
        Build without offset and with length information
        Parameters:
        onlyPredicted - whether or not to add marker for "only predicted"
        firstPos - begin position of insertion
        lastPos - end position of insertion
        insertedLength - the number of inserted bases
        Returns:
        Resulting NucleotideInsertion
      • buildWithSequence

        public static NucleotideInsertion buildWithSequence​(boolean onlyPredicted,
                                                            int firstPos,
                                                            int lastPos,
                                                            String seq)
        Build without offset and with sequence
        Parameters:
        onlyPredicted - whether or not to add marker for "only predicted"
        firstPos - begin position of insertion
        lastPos - end position of insertion
        seq - the inserted sequence
        Returns:
        Resulting NucleotideInsertion
      • getRange

        public NucleotideRange getRange()
        Returns:
        range of length 1 with the two bases between which the sequence is inserted