~/bend-docscommunity

src/Alignment.bend checks

raw source on the hub · import bend-edit-distance@0.2.2.0/src/Alignment.bend as Alignment

4 imports
import Base
import ./Sequence.bend as S
import ../EdlibTypes.bend as E
import ./Reconstruction.bend as R

Types

type Location source · line 8 · raw

Data

Myers owns nonempty distance and location searches. This module builds ordered results, preserves empty-input returns and validates reconstructed PATH.

type Best source · line 11 · raw

Data

Definitions

def update_best source · line 14 · raw

@best:Best -> @score:U32 -> @location:Location -> @comparison:Cmp -> Best

def ordered source · line 23 · raw

@best:Best -> Best

def ends source · line 28 · raw

@locations:List<&2, Location> -> List<&2, 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.Coordinate>

def starts source · line 35 · raw

@locations:List<&2, Location> -> List<&2, 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.Coordinate>

def span source · line 42 · raw

@target:String -> @location:Location -> String

def path_result source · line 49 · raw

@score:U32 -> @+locations:List<&2, Location> -> @+operations:List<&2, 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.Operation> -> @format:0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.CigarFormat -> 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.AlignResult

def location_valid source · line 54 · raw

@target:String -> @location:Location -> Bool

def path_checked source · line 61 · raw

@score:U32 -> @locations:List<&2, Location> -> @format:0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.CigarFormat -> @operations:List<&2, 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.Operation> -> @valid:Bool -> 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.AlignResult

def path_validate source · line 69 · raw

@query:String -> @segment:String -> @pairs:List<&2, 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.EqualityPair> -> @+score:U32 -> @locations:List<&2, Location> -> @format:0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.CigarFormat -> @+operations:List<&2, 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.Operation> -> @valid_location:Bool -> 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.AlignResult

def path_reconstruct source · line 75 · raw

@+query:String -> @+segment:String -> @+pairs:List<&2, 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.EqualityPair> -> @score:U32 -> @locations:List<&2, Location> -> @format:0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.CigarFormat -> @valid_location:Bool -> 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.AlignResult

def result source · line 81 · raw

@query:String -> @target:String -> @task:0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.Task -> @pairs:List<&2, 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.EqualityPair> -> @format:0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.CigarFormat -> @best:Best -> @accepted:Bool -> 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.AlignResult

def empty_result source · line 100 · raw

@query:String -> @target:String -> @config:0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.AlignConfig -> 0xd65851cd1dee629f72e346cda168bc1d/EdlibTypes.AlignResult

Pinned Edlib returns before applying k or calculating starts/path on empty inputs, including PATH. Preserve that observable oracle behavior.