Skip to content

Commit

Permalink
Merge pull request #132 from fymue/fix_index_typos
Browse files Browse the repository at this point in the history
fix typo when indexing into gap scores in forward pass
  • Loading branch information
mortonjt authored May 22, 2023
2 parents a4df993 + 81ac6e3 commit 912a391
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepblast/nw.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _forward_pass_numba(theta, A):
for j in range(1, M + 1):
maxargs[x] = A[i - 1, j - 1] + V[i - 1, j] # x
maxargs[m] = V[i - 1, j - 1] # m
maxargs[y] = A[i - j, 1 - 1] + V[i, j - 1] # y
maxargs[y] = A[i - 1, j - 1] + V[i, j - 1] # y
v, Q[i, j] = _soft_max_numba(maxargs)
V[i, j] = theta[i - 1, j - 1] + v
Vt = V[N, M]
Expand Down
2 changes: 1 addition & 1 deletion deepblast/sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _forward_pass_numba(theta, A):
for j in range(2, M + 1):
maxargs[x] = A[i - 1, j - 1] + V[i - 1, j] # x
maxargs[m] = V[i - 1, j - 1] # m
maxargs[y] = A[i - j, 1 - 1] + V[i, j - 1] # y
maxargs[y] = A[i - 1, j - 1] + V[i, j - 1] # y
v, Q[i, j] = _soft_max_numba(maxargs)
V[i, j] = theta[i - 1, j - 1] + v
Vt = V[N, M]
Expand Down

0 comments on commit 912a391

Please sign in to comment.