mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 05:19:55 +00:00
Add tests for translate(::Haplotype)
This commit is contained in:
parent
a61a80d586
commit
6a4a39c859
1 changed files with 10 additions and 0 deletions
|
@ -69,6 +69,16 @@ end
|
||||||
@test Variation(seq2, "A3T") < Variation(seq2, "T4A")
|
@test Variation(seq2, "A3T") < Variation(seq2, "T4A")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@testset "HaplotypeTranslation" begin
|
||||||
|
ref1 = seq2
|
||||||
|
ref2 = seq3
|
||||||
|
alt = seq1
|
||||||
|
|
||||||
|
@test all(
|
||||||
|
v -> v in Haplotype(align(alt, ref2)), variations(translate(var, align(ref2, ref1)))
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
@testset "VariationPosition" begin
|
@testset "VariationPosition" begin
|
||||||
refseq = dna"ACAACTTTATCT"
|
refseq = dna"ACAACTTTATCT"
|
||||||
mutseq = dna"ACATCTTTATCT"
|
mutseq = dna"ACATCTTTATCT"
|
||||||
|
|
Loading…
Reference in a new issue