Skip to content

Commit

Permalink
VS-942. Fix an error where NO variants were found (#8388)
Browse files Browse the repository at this point in the history
* Fix a bug where there were NO variants in a range.
  • Loading branch information
gbggrant authored and mcovarr committed Jun 29, 2023
1 parent b2ed14f commit ec0ccd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ void createVariantsFromSortedRanges(final SortedSet<Long> sampleIdsToExtract,
}

// finish writing out reference rows
if (lastSample != maxSampleId) {
if ((lastSample != null) && (lastSample != maxSampleId)) {
processReferenceData(currentPositionRecords, sortedReferenceRangeIterator, referenceCache, lastPosition, lastSample + 1, maxSampleId, sampleIdsToExtract);

Check warning on line 1154 in src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java#L1154

Added line #L1154 was not covered by tests
}

Expand Down

0 comments on commit ec0ccd8

Please sign in to comment.