private void CheckBedEntry(BedGraphEntry actual, int expectedStart, int expectedEnd, string expectedChr,
                            decimal expectedValue)
 {
     Assert.Equal(expectedStart, actual.Interval.Start);
     Assert.Equal(expectedEnd, actual.Interval.End);
     Assert.Equal(expectedChr, actual.Chromosome);
     Assert.Equal(expectedValue, actual.Value);
 }
Exemple #2
0
        private BedGraphEntry GetRoundedBedGraphEntry(BedGraphEntry entry)
        {
            var roundedCoverage = Math.Round(entry.Value, _fractionalDigits, MidpointRounding.AwayFromZero);

            return(new BedGraphEntry(entry.Chromosome, entry.Interval, roundedCoverage));
        }