23 lines
522 B
Lua
23 lines
522 B
Lua
needle = require("./needle")
|
|
|
|
function multiple_path_backtrack_trace(matrix, seq1, seq2)
|
|
local stack = {}
|
|
local m=string.len(seq1)
|
|
local n=string.len(seq2)
|
|
local i=m
|
|
local j=n
|
|
table.insert(1, {i, j, nil})
|
|
while #stack ~= 0 do
|
|
local state = table.remove(stack, 1)
|
|
local i=state[1]
|
|
local j=state[2]
|
|
local alignment = state[3]
|
|
end
|
|
end
|
|
|
|
function main()
|
|
local seq1 = "ATCTGAT"
|
|
local seq2 = "TGCATA"
|
|
local matrix = needle.needle_matrix(seq1, seq2)
|
|
end
|