BioJulia/SequenceVariation.jl

Multiple `Substitution`s doesn't invalidate `Haplotype`

MillironX opened this issue · 0 comments

Expected behavior

I should not be able to construct a Haplotype using Variations that modify the same position in the reference sequence.

Current behavior

Constructing a Haplotype using two Substitution Variations completes successfully.

Possible solution

No response

Steps to reproduce

using BioSequences, SequenceVariation

ref = dna"GA"
hap = Haplotype(
    ref,
    [
        Variation(ref, "A2T"),
        Variation(ref, "A2G"),
    ],
)

# output
Haplotype{LongSequence{DNAAlphabet{4}}, DNA} with 2 edits:
  A2T
  A2G

Context

No response

Package version used

0.2.1

Julia version used

1.8.5

Operating system and version

Fedora 36

Link to your project

No response

Please list installed packages here

No response