Skip to content

Commit

Permalink
better gap methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kescobo committed Jun 15, 2021
1 parent 5cab383 commit c02b84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/needleman_wunch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function nwscore(base1::Char, base2::Char)

end

nwscore(::Nothing, base::Char) = -1
nwscore(base::Char, ::Nothing) = -1
nwscore(::Nothing, base::Char) = nwscore(base, nothing)

nwscore(::Nothing, ::Nothing) = throw(ArgumentError("Score for two gaps is not defined"))

0 comments on commit c02b84c

Please sign in to comment.