コード例 #1
0
        public void ApplyDuplicationAdjustments_NonCoding_Reverse()
        {
            var regions = new ITranscriptRegion[3];

            regions[0] = new TranscriptRegion(TranscriptRegionType.Exon, 2, 20976856, 20977050, 154, 348);
            regions[1] = new TranscriptRegion(TranscriptRegionType.Intron, 1, 20977051, 20977054, 153, 154);
            regions[2] = new TranscriptRegion(TranscriptRegionType.Exon, 1, 20977055, 20977207, 1, 153);

            var observedResults = regions.ShiftDuplication(20977006, "AACT", true);

            Assert.Equal("AACT", observedResults.RefAllele);
            Assert.Equal(20977009, observedResults.Start);
            Assert.Equal(20977006, observedResults.End);
        }
コード例 #2
0
        public void ApplyDuplicationAdjustments_Coding_Forward()
        {
            var regions = new ITranscriptRegion[41];

            for (int i = 0; i < 22; i++)
            {
                regions[i] = new TranscriptRegion(TranscriptRegionType.Exon, 0, 107000000, 107334926, 1, 1564);
            }
            for (int i = 23; i < regions.Length; i++)
            {
                regions[i] = new TranscriptRegion(TranscriptRegionType.Exon, 0, 107335162, 108000000, 1662, 1700);
            }
            regions[21] = new TranscriptRegion(TranscriptRegionType.Intron, 11, 107334926, 107335065, 1565, 1566);
            regions[22] = new TranscriptRegion(TranscriptRegionType.Exon, 12, 107335066, 107335161, 1566, 1661);

            var observedResults = regions.ShiftDuplication(107335068, "AGTC", false);

            Assert.Equal("AGTC", observedResults.RefAllele);
            Assert.Equal(107335064, observedResults.Start);
            Assert.Equal(107335067, observedResults.End);
        }