Skip to content

Commit

Permalink
Corrected nt index
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericlemoine committed Mar 24, 2024
1 parent b034b00 commit f75f0b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions align/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,13 @@ T=3
func Nt2Index(nt uint8) (idx int, err error) {
switch unicode.ToUpper(rune(nt)) {
case 'A':
idx = NT_A
idx = 0
case 'C':
idx = NT_C
idx = 1
case 'G':
idx = NT_G
idx = 2
case 'T':
idx = NT_T
idx = 3
default:
err = fmt.Errorf("no index for character: %c", nt)
}
Expand Down

0 comments on commit f75f0b3

Please sign in to comment.