Misc minor cleanup

This commit is contained in:
Eric Banks 2011-11-14 09:41:54 -05:00
parent b7c33116af
commit 3d2970453b
3 changed files with 3 additions and 5 deletions

View File

@ -6,9 +6,7 @@ import org.broadinstitute.sting.utils.NGSPlatform;
import org.broadinstitute.sting.utils.exceptions.UserException;
import org.broadinstitute.sting.utils.sam.GATKSAMRecord;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.List;
/*
* Copyright (c) 2009 The Broad Institute

View File

@ -95,11 +95,11 @@ public class PileupElement implements Comparable<PileupElement> {
// --------------------------------------------------------------------------
public boolean isReducedRead() {
return ((GATKSAMRecord)read).isReducedRead();
return read.isReducedRead();
}
public int getRepresentativeCount() {
return isReducedRead() ? ((GATKSAMRecord)read).getReducedCount(offset) : 1;
return isReducedRead() ? read.getReducedCount(offset) : 1;
}
}

View File

@ -243,7 +243,7 @@ public class ReadUtils {
public static GATKSAMRecord hardClipAdaptorSequence(final GATKSAMRecord read, int adaptorLength) {
Pair<Integer, Integer> adaptorBoundaries = getAdaptorBoundaries(read, adaptorLength);
GATKSAMRecord result = (GATKSAMRecord)read;
GATKSAMRecord result = read;
if ( adaptorBoundaries != null ) {
if ( read.getReadNegativeStrandFlag() && adaptorBoundaries.second >= read.getAlignmentStart() && adaptorBoundaries.first < read.getAlignmentEnd() )