mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-25 22:59:56 +00:00
test: Add test for alignment(::Haplotype)
This commit is contained in:
parent
4817c8016a
commit
db170730f0
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue