mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-12-25 01:38:18 +00:00
Switch alignment validation to after edit construction
This commit is contained in:
parent
f9058c5cb3
commit
128a5445ad
1 changed files with 1 additions and 2 deletions
|
@ -263,7 +263,6 @@ function Variant(aln::PairwiseAlignment{T, T}) where {T <: LongSequence{<:Union{
|
|||
ref = aln.b
|
||||
E = eltype(typeof(ref))
|
||||
edits = Edit{T, E}[]
|
||||
result = Variant(ref, edits)
|
||||
refpos = first(aln.a.aln.anchors).refpos
|
||||
seqpos = first(aln.a.aln.anchors).seqpos
|
||||
markpos = 0
|
||||
|
@ -312,7 +311,7 @@ function Variant(aln::PairwiseAlignment{T, T}) where {T <: LongSequence{<:Union{
|
|||
end
|
||||
end
|
||||
|
||||
return result
|
||||
return Variant(ref, edits)
|
||||
end
|
||||
|
||||
edits(v::Variant) = v.edits
|
||||
|
|
Loading…
Reference in a new issue