Example #1
0
        public void PassedTheEnd_AsExpected()
        {
            var annotationRange = new GenomicRange(new GenomicPosition(ChromosomeUtilities.Chr1, 100), new GenomicPosition(ChromosomeUtilities.Chr1, 200));
            var vcfFilter       = new VcfFilter(annotationRange);

            Assert.False(vcfFilter.PassedTheEnd(ChromosomeUtilities.Chr1, 150));
            Assert.False(vcfFilter.PassedTheEnd(ChromosomeUtilities.Chr1, 200));
            Assert.True(vcfFilter.PassedTheEnd(ChromosomeUtilities.Chr1, 201));
            Assert.True(vcfFilter.PassedTheEnd(ChromosomeUtilities.Chr2, 150));
        }
Example #2
0
        public void PassedTheEnd_AsExpected()
        {
            var chromosome      = new Chromosome("chr1", "1", 0);
            var annotationRange = new GenomicRange(new GenomicPosition(chromosome, 100), new GenomicPosition(chromosome, 200));
            var vcfFilter       = new VcfFilter(annotationRange);

            Assert.False(vcfFilter.PassedTheEnd(new Chromosome("chr1", "1", 0), 150));
            Assert.False(vcfFilter.PassedTheEnd(new Chromosome("chr1", "1", 0), 200));
            Assert.True(vcfFilter.PassedTheEnd(new Chromosome("chr1", "1", 0), 201));
            Assert.True(vcfFilter.PassedTheEnd(new Chromosome("chr2", "2", 1), 150));
        }