Skip to content

Commit

Permalink
Modify getindex relaxing assertion of source sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
camilogarciabotero committed Jul 7, 2024
1 parent 4e239b5 commit 363143e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extended.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import BioSequences: translate
Base.isless(a::ORF{N,F}, b::ORF{N,F}) where {N,F} = isless(a.first:a.last, b.first:b.last)

function getindex(seq::NucleicSeqOrView{A}, orf::ORF{N,F}) where {A,N,F}
@assert @view(seq[begin:end]) == source(orf) "The source sequence of the ORF and the given sequence are different"
# @assert @view(seq[begin:end]) == source(orf) "The source sequence of the ORF and the given sequence are different"

if orf.strand == STRAND_POS
s = @view seq[orf.first:orf.last]
Expand Down

0 comments on commit 363143e

Please sign in to comment.