Skip to content

Commit

Permalink
Change names
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson committed Aug 15, 2024
1 parent 9a43070 commit bdeaf1c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/broad/igv/sam/AlignmentRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ private void drawAlignment(
else if (block.getCigarOperator() == 'X') g = context.getGraphics2D("MISMATCH");
}

if(renderOptions.getDuplicatesOption() == AlignmentTrack.DuplicatesOption.TEXTURED && alignment.isDuplicate()) {
if(renderOptions.getDuplicatesOption() == AlignmentTrack.DuplicatesOption.TEXTURE && alignment.isDuplicate()) {
final Graphics2D tg = (Graphics2D) g.create();

final TexturePaint tp = getDuplicateTexture(tg.getColor());
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/org/broad/igv/sam/AlignmentTileLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
package org.broad.igv.sam;

import htsjdk.samtools.SAMFileHeader;
import htsjdk.samtools.SAMTag;
import htsjdk.samtools.util.CloseableIterator;
import org.broad.igv.event.IGVEvent;
import org.broad.igv.logging.*;
Expand All @@ -43,7 +42,6 @@
import org.broad.igv.util.ObjectCache;
import org.broad.igv.util.RuntimeUtils;

import javax.swing.*;
import java.io.IOException;
import java.lang.ref.WeakReference;
import java.text.DecimalFormat;
Expand Down Expand Up @@ -135,7 +133,7 @@ AlignmentTile loadTile(String chr,
boolean filterSupplementaryAlignments = prefMgr.getAsBoolean(SAM_FILTER_SUPPLEMENTARY_ALIGNMENTS);
ReadGroupFilter filter = ReadGroupFilter.getFilter();
boolean filterDuplicates = renderOptions != null
? renderOptions.getDuplicatesOption() == AlignmentTrack.DuplicatesOption.FILTERED
? renderOptions.getDuplicatesOption() == AlignmentTrack.DuplicatesOption.FILTER
: prefMgr.getAsBoolean(SAM_FILTER_DUPLICATES);

int qualityThreshold = prefMgr.getAsInt(SAM_QUALITY_THRESHOLD);
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/broad/igv/sam/AlignmentTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ public boolean isSMRTKinetics() {
}

public enum DuplicatesOption {
FILTERED("filtered", true),
VISIBLE("visible", false),
TEXTURED("textured", false);
FILTER("filter duplicates", true),
SHOW("show duplicates", false),
TEXTURE("texture duplicates", false);

public final String label;
public final boolean filtered;
Expand Down Expand Up @@ -1493,8 +1493,8 @@ public DuplicatesOption getDuplicatesOption() {
return duplicatesOption;
} else {
duplicatesOption = prefs.getAsBoolean(SAM_FILTER_DUPLICATES)
? DuplicatesOption.FILTERED
: DuplicatesOption.VISIBLE;
? DuplicatesOption.FILTER
: DuplicatesOption.SHOW;
}
return duplicatesOption;
}
Expand Down

0 comments on commit bdeaf1c

Please sign in to comment.