Skip to content

Commit

Permalink
fix typo when indexing into gap scores
Browse files Browse the repository at this point in the history
  • Loading branch information
fymue committed May 5, 2023
1 parent a4df993 commit 81ac6e3
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 81ac6e3

Please sign in to comment.