~/bend-docscommunity

src/Alignment.bend checks

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

3 imports
import Base
import ../EdlibTypes.bend as E
import ./Reconstruction.bend as R

Types

type Location source · line 7 · 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 10 · raw

Data

Definitions

def update_best source · line 13 · raw

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

def ordered source · line 22 · raw

@best:Best -> Best

def ends source · line 27 · raw

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

def starts source · line 34 · raw

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

def span source · line 41 · raw

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

def path_result source · line 48 · raw

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

def location_valid source · line 53 · raw

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

def path_checked source · line 60 · raw

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

def path_validate source · line 68 · raw

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

def path_reconstruct source · line 74 · raw

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

def result source · line 80 · raw

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

def empty_result source · line 99 · raw

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

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