Add tests for variations function

This commit is contained in:
Thomas A. Christensen II 2022-06-15 13:44:27 -05:00
parent 6d7a93604a
commit 36cbd5abb9
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -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