mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 05:19:55 +00:00
Add tests for variations function
This commit is contained in:
parent
6d7a93604a
commit
36cbd5abb9
1 changed files with 12 additions and 0 deletions
|
@ -57,3 +57,15 @@ end
|
|||
@test mutation(del) isa Deletion
|
||||
@test mutation(ins) isa Insertion
|
||||
end
|
||||
|
||||
@testset "VariationRetrieval" begin
|
||||
refseq = dna"ACAACTTTATCT"
|
||||
mutseq = dna"ACATCTTTATCT"
|
||||
|
||||
read = AlignedSequence(mutseq[1:10], Alignment("10M", 1, 1))
|
||||
aln = PairwiseAlignment(read, refseq)
|
||||
var = Variant(aln)
|
||||
|
||||
sub = Variation(refseq, "A4T")
|
||||
@test first(variations(var)) == sub
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue