Ejemplo n.º 1
0
        public void GetReferencePloidyIntervals_VcfPloidy1AndSameQueryInterval_PloidyIs1()
        {
            var queryInterval      = new ReferenceInterval("chrX", new Interval(1, 2));
            var ploidyVcfIntervals = new ReferencePloidyInterval(queryInterval, 1).Yield().ToList();

            AssertSingleReferencePloidy(ploidyVcfIntervals, queryInterval, 1);
        }
Ejemplo n.º 2
0
        public void GetReferencePloidyIntervals_VcfPloidy1AndPartialOverlapQueryInterval_PloidyIs1And2(bool symbolicAltAllele)
        {
            var vcfInterval        = new ReferenceInterval("chrX", new Interval(1, 1));
            var ploidyVcfIntervals = new ReferencePloidyInterval(vcfInterval, 1).Yield().ToList();
            var queryInterval      = new ReferenceInterval("chrX", new Interval(1, 2));

            var expectedPloidyIntervals = new[]
            {
                CreatePloidyInterval("chrX", new Interval(1, 1), 1),
                CreatePloidyInterval("chrX", new Interval(2, 2), 2)
            };

            AssertEqualPloidy(ploidyVcfIntervals, queryInterval, expectedPloidyIntervals, symbolicAltAllele);
        }