Commit d5e8d64 1 parent 6e5f245 commit d5e8d64 Copy full SHA for d5e8d64
File tree 1 file changed +2
-2
lines changed
src/org/broad/igv/hic/data
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ public BasicMatrix computePearsons(DensityFunction df) {
286
286
int size = oe .getRowDimension ();
287
287
int num = 0 ;
288
288
for (int i = 0 ; i < size ; i ++) {
289
- if (i == nonCentromereColumns [num ]) {
289
+ if (num < nonCentromereColumns . length && i == nonCentromereColumns [num ]) {
290
290
RealVector v = oe .getRowVector (i );
291
291
double m = getVectorMean (v );
292
292
RealVector newV = v .mapSubtract (m );
@@ -299,7 +299,7 @@ public BasicMatrix computePearsons(DensityFunction df) {
299
299
RealVector v = new ArrayRealVector (size );
300
300
num = 0 ;
301
301
for (int i = 0 ; i < size ; i ++) {
302
- if (i != nonCentromereColumns [num ]) {
302
+ if (num < nonCentromereColumns . length && i != nonCentromereColumns [num ]) {
303
303
rm .setRowVector (i , v );
304
304
rm .setColumnVector (i , v );
305
305
} else num ++;
You can’t perform that action at this time.
0 commit comments