speed up to_atgcn_and_gap.c (table-lookup)
speed up to_atgcn_and_gap.c (table-lookup)

Script, generating the table:

map = {
    A = 'A',
    T = 'T',
    G = 'G',
    C = 'C',
    N = 'N',
    a = 'A',
    t = 'T',
    g = 'G',
    c = 'C',
    n = 'N',
    ['-'] = '-',
    R = 'N',
    Y = 'N',
    M = 'N',
    K = 'N',
    W = 'N',
    S = 'N',
    B = 'N',
    V = 'N',
    H = 'N',
    D = 'N',
    r = 'N',
    y = 'N',
    m = 'N',
    k = 'N',
    w = 'N',
    s = 'N',
    b = 'N',
    v = 'N',
    h = 'N',
    d = 'N',
}

result = {}

for i = 0, 255 do
    c = string.char(i)
    if map[c] then
        table.insert(result, ("'%s'"):format(map[c]))
    else
        table.insert(result, '0')
    end
end

print(table.concat(result, ', '))

npge/lua-npge,npge/lua-npge,npge/lua-npge,starius/lua-npge,starius/lua-npge,starius/lua-npge