def hw_location
bend-edit-distance@0.2.2.0 · src/Myers.bend:597
import bend-edit-distance@0.2.2.0/src/Myers.bend as Myers
import Base
import bend-edit-distance@0.2.2.0/EdlibTypes.bend as E
import bend-edit-distance@0.2.2.0/src/Alignment.bend as A
597def hw_location(location: A.Location, reverse_target: String, target_length: Nat,
598 profiles: List<&2, Peq>, query_length: Nat, maximum: Nat) -> A.Location:
599 match location:
600 case A.Location{E.BeforeStart{}, _}:
601 A.Location{E.BeforeStart{}, 0n}
602 case A.Location{E.Position{+end}, _}:
603 hw_start_best(end, semiglobal_best(
604 String.drop(reverse_target, Nat.sub(target_length, 1n+end)),
605 profiles, query_length, maximum, E.SHW{}))