-
-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
Description
The test fixture used to create a single-interval IntervalList, despite allowing parameterization, always returns an interval in the range [1, 10]. Fixing this bug causes many unit tests to fail. Either the implementation of AssessPhasing is incorrect or the test cases were create improperly such that they assert incorrect expected test outcomes.
fgbio/src/test/scala/com/fulcrumgenomics/vcf/AssessPhasingTest.scala
Lines 202 to 211 in 0e32d74
| private def toIntervalList(start: Int, end: Int): PathToIntervals = { | |
| val path = makeTempFile("AssessPhasingTest.", ".interval_list") | |
| val contig = Header.getSequenceDictionary.getSequence(0).getSequenceName | |
| val header = new SAMFileHeader | |
| header.setSequenceDictionary(Header.getSequenceDictionary) | |
| val intervalList = new IntervalList(header) | |
| intervalList.add(new Interval(contig, 1, 10)) | |
| intervalList.write(path.toFile) | |
| path | |
| } |
Observed in: