mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-24 06:19:54 +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
|
ref = aln.b
|
||||||
E = eltype(typeof(ref))
|
E = eltype(typeof(ref))
|
||||||
edits = Edit{T, E}[]
|
edits = Edit{T, E}[]
|
||||||
result = Variant(ref, edits)
|
|
||||||
refpos = first(aln.a.aln.anchors).refpos
|
refpos = first(aln.a.aln.anchors).refpos
|
||||||
seqpos = first(aln.a.aln.anchors).seqpos
|
seqpos = first(aln.a.aln.anchors).seqpos
|
||||||
markpos = 0
|
markpos = 0
|
||||||
|
@ -312,7 +311,7 @@ function Variant(aln::PairwiseAlignment{T, T}) where {T <: LongSequence{<:Union{
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return result
|
return Variant(ref, edits)
|
||||||
end
|
end
|
||||||
|
|
||||||
edits(v::Variant) = v.edits
|
edits(v::Variant) = v.edits
|
||||||
|
|
Loading…
Reference in a new issue