Skip to content

Commit

Permalink
Merge branch 'release-2.12.x' into TASK-5789
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga authored Apr 17, 2024
2 parents 9ea6c14 + 53cc1aa commit 3aaf9ec
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
Expand All @@ -62,7 +63,7 @@ public class BamManager implements AutoCloseable {

public static final int DEFAULT_WINDOW_SIZE = 1;
public static final int MAX_NUM_RECORDS = 50000;
public static final int MAX_REGION_COVERAGE = 100000;
public static final int MAX_REGION_COVERAGE = 500000;
public static final String COVERAGE_BIGWIG_EXTENSION = ".bw";

private Logger logger;
Expand Down Expand Up @@ -191,7 +192,10 @@ public Path calculateBigWigCoverage(Path bigWigPath, int windowSize) throws IOEx
return bigWigPath;
}


/**
* @deprecated (since getFileHeader().getTextHeader() is deprecated !)
*/
@Deprecated
public String header() {
return samReader.getFileHeader().getTextHeader();
}
Expand Down Expand Up @@ -338,7 +342,7 @@ public List<Chunk> getChunks(Region region) {
BAMIndex index = samReader.indexing().getIndex();
return index.getSpanOverlapping(sequenceIndex, start, end).getChunks();
}
return null;
return Collections.emptyList();
}

public List<String> getBreakpoints(Region region) throws IOException {
Expand Down Expand Up @@ -378,7 +382,7 @@ public List<String> getBreakpoints(Region region) throws IOException {
}
}
}
return null;
return Collections.emptyList();
}

/**
Expand Down Expand Up @@ -445,7 +449,7 @@ public AlignmentGlobalStats stats(Region region, AlignmentFilters<SAMRecord> fil
return calculateGlobalStats(iterator(region, filters, options));
}

private AlignmentGlobalStats calculateGlobalStats(BamIterator<SAMRecord> iterator) throws IOException {
private AlignmentGlobalStats calculateGlobalStats(BamIterator<SAMRecord> iterator) {
AlignmentGlobalStats alignmentGlobalStats = new AlignmentGlobalStats();
SamRecordAlignmentGlobalStatsCalculator calculator = new SamRecordAlignmentGlobalStatsCalculator();
while (iterator.hasNext()) {
Expand Down

0 comments on commit 3aaf9ec

Please sign in to comment.