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); }
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); }