mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 13:29:56 +00:00
Add tests for Variation parsing
This commit is contained in:
parent
2d05b233a9
commit
6bc1528d18
1 changed files with 14 additions and 1 deletions
|
@ -23,9 +23,10 @@ TODO now:
|
||||||
* Add tests
|
* Add tests
|
||||||
"""
|
"""
|
||||||
|
|
||||||
using BioSequences
|
|
||||||
using BioAlignments
|
using BioAlignments
|
||||||
|
using BioSequences
|
||||||
using SequenceVariation
|
using SequenceVariation
|
||||||
|
using Test
|
||||||
|
|
||||||
const DNA_MODEL = BioAlignments.AffineGapScoreModel(EDNAFULL, gap_open=-25, gap_extend=-2)
|
const DNA_MODEL = BioAlignments.AffineGapScoreModel(EDNAFULL, gap_open=-25, gap_extend=-2)
|
||||||
|
|
||||||
|
@ -44,3 +45,15 @@ var = Variant(align(seq1, seq2))
|
||||||
aln02 = PairwiseAlignment(read02, refseq)
|
aln02 = PairwiseAlignment(read02, refseq)
|
||||||
@test Variant(aln01).edits == Variant(aln02).edits
|
@test Variant(aln01).edits == Variant(aln02).edits
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@testset "VariationParsing" begin
|
||||||
|
refseq = dna"ACAACTTTATCT"
|
||||||
|
|
||||||
|
sub = Variation(refseq, "A4T")
|
||||||
|
del = Variation(refseq, "Δ4-5")
|
||||||
|
ins = Variation(refseq, "4TT")
|
||||||
|
|
||||||
|
@test mutation(sub) isa Substitution
|
||||||
|
@test mutation(del) isa Deletion
|
||||||
|
@test mutation(ins) isa Insertion
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue