Skip to content

Commit

Permalink
Fix assertion to compare Alphabet types in markovprobability function
Browse files Browse the repository at this point in the history
  • Loading branch information
camilogarciabotero committed Dec 9, 2024
1 parent 044033d commit 15778eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transitions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function markovprobability(
model::BioMarkovChain{A}=ECOLICDS,
logscale::Bool=true
) where {A<:NucleicAcidAlphabet}
@assert eltype(model) == Alphabet(seq) "Sequence and model state space are inconsistent."
@assert Alphabet(model) == Alphabet(seq) "Sequence and model state space are inconsistent."

init = logscale ? log2(model.inits[_dna_to_int(seq[1])]) : model.inits[_dna_to_int(seq[1])]
probability = init
Expand Down

0 comments on commit 15778eb

Please sign in to comment.