Bimap

sealed trait Bimap

Allows for mapping indices bidirectionally between the base and target sequences.

Allows for mapping indices bidirectionally between the base and target sequences.

class Object
trait Matchable
class Any

Value members

Abstract methods

def baseToTargetIndex(ix: Int): Option[Int]

Maps base indices to target indices.

Maps base indices to target indices.

Returns None if the given index is outside the index range of the base sequence or the element at the respective place was deleted and therefore doesn't appear in the target.

def targetToBaseIndex(ix: Int): Option[Int]

Maps target indices to base indices.

Maps target indices to base indices.

Returns None if the given index is outside the index range of the target sequence or the element at the respective place was insert and therefore doesn't appear in the base.