neelsmith / VectorAlignments.jl

Simple utilities for comparing and aligning vectors.

Home Page:https://neelsmith.github.io/VectorAlignments.jl/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Simple utilities for comparing and aligning vectors.

https://neelsmith.github.io/VectorAlignments.jl/stable/

License:GNU General Public License v3.0


Languages

Language:Julia 100.0%