test: Add test for alignment(::Haplotype)

This commit is contained in:
Thomas A. Christensen II 2023-04-04 12:32:13 -05:00
parent 4817c8016a
commit db170730f0
Signed by: millironx
GPG key ID: 09335146883990B9

View file

@ -32,6 +32,7 @@ using BioAlignments:
Alignment, Alignment,
AlignedSequence, AlignedSequence,
PairwiseAlignment, PairwiseAlignment,
alignment,
cigar cigar
using BioSequences: BioSequence, @dna_str, ungap! using BioSequences: BioSequence, @dna_str, ungap!
using BioSymbols: DNA_A using BioSymbols: DNA_A
@ -147,6 +148,12 @@ end
@test cigar(genotype) == "2D7M1I7M2D8M" @test cigar(genotype) == "2D7M1I7M2D8M"
end end
@testset "HaplotypeAlignment" begin
# This test is broken until we get a way to remove sequence info from alignments
# See: https://github.com/BioJulia/BioAlignments.jl/issues/90
@test_broken alignment(var) == align(seq1, seq2)
end
@testset "HaplotypeTranslation" begin @testset "HaplotypeTranslation" begin
ref1 = seq2 ref1 = seq2
ref2 = seq3 ref2 = seq3