VectorAlignments.jl

Simple utilities for comparing and aligning vectors.
Author neelsmith
Popularity
0 Stars
Updated Last
6 Months Ago
Started In
February 2024

VectorAlignments.jl

Simple utilities for comparing and aligning vectors.

Compare vectors with any kind of content for longest common subsequence, shortest common supersequence, and alignments.

Overview

julia> using VectorAlignments

julia> lcs("ab", "abc")
2-element Vector{Any}:
 'a': ASCII/Unicode U+0061 (category Ll: Letter, lowercase)
 'b': ASCII/Unicode U+0062 (category Ll: Letter, lowercase)

julia> scs("ab", "abc")
3-element Vector{Any}:
 'a': ASCII/Unicode U+0061 (category Ll: Letter, lowercase)
 'b': ASCII/Unicode U+0062 (category Ll: Letter, lowercase)
 'c': ASCII/Unicode U+0063 (category Ll: Letter, lowercase)

julia> align("bc","abc")
2-element Vector{Any}:
 Any[nothing, 'b', 'c']
 Any['a', 'b', 'c']

julia> featurematrix("bc","abc")
3×2 Matrix{Any}:
 nothing  'a'
 'b'      'b'
 'c'      'c'

See the documentation for more details.

Used By Packages

No packages found.