Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Aug 26, 2023
1 parent 5fb3911 commit 74d6447
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/org/broad/igv/sam/AlignmentTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ public void renderExpandedInsertion(InsertionMarker insertionMarker, RenderConte
assert visibleRect != null;
if (y + h > visibleRect.getY()) {
Rectangle rowRectangle = new Rectangle(inputRect.x, (int) y, inputRect.width, (int) h);
if(row.alignments != null) // TODO -- not sure this is needed
if (row.alignments != null) // TODO -- not sure this is needed
BaseRenderer.drawExpandedInsertions(insertionMarker, row.alignments, context, rowRectangle, leaveMargin, renderOptions);
row.y = y;
row.h = h;
Expand Down Expand Up @@ -835,10 +835,10 @@ public String getValueStringAt(String chr, double position, int mouseX, int mous
return null;
}
} else {
Alignment feature = getAlignmentAt(position, mouseY, frame);
if (feature != null) {
return feature.getAlignmentValueString(position, mouseX, renderOptions);
}
Alignment feature = getAlignmentAt(position, mouseY, frame);
if (feature != null) {
return feature.getAlignmentValueString(position, mouseX, renderOptions);
}
}
return null;
}
Expand Down Expand Up @@ -1224,9 +1224,9 @@ public static class RenderOptions implements Cloneable, Persistable {
this.track = track;
peStats = new HashMap<>();

// Set some constants
this.baseQualityMin = track.getPreferences().getAsInt(SAM_BASE_QUALITY_MIN);
this.baseQualityMax = track.getPreferences().getAsInt(SAM_BASE_QUALITY_MAX);
// Set some constants -- for efficiency
this.baseQualityMin = track == null ? 5 : track.getPreferences().getAsInt(SAM_BASE_QUALITY_MIN);
this.baseQualityMax = track == null ? 20 : track.getPreferences().getAsInt(SAM_BASE_QUALITY_MAX);
}

IGVPreferences getPreferences() {
Expand Down Expand Up @@ -1718,7 +1718,7 @@ public void unmarshalXML(Element element, Integer version) {
}
if (element.hasAttribute("showInsertionMarkers")) {
// TODO -- something with this
// showInsertionMarkers = Boolean.parseBoolean(element.getAttribute("showInsertionMarkers"));
// showInsertionMarkers = Boolean.parseBoolean(element.getAttribute("showInsertionMarkers"));
}
if (element.hasAttribute("basemodFilter")) {
basemodFilter = BaseModficationFilter.fromString(element.getAttribute("basemodFilter"));
Expand Down

0 comments on commit 74d6447

Please sign in to comment.