Skip to content

Commit 6e5f245

Browse files
committed
Uncommented the code I don't understand regarding the transpose, shouldn't matter for intra chromosomal anyway.
1 parent 1523d91 commit 6e5f245

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/org/broad/igv/hic/tools/Preprocessor.java

+9-10
Original file line numberDiff line numberDiff line change
@@ -293,16 +293,15 @@ private int getGenomicPosition(int chr, int pos) {
293293

294294
private static void incrementCount(MatrixPP matrix, int chr1, int pos1, int chr2, int pos2) {
295295
// I don't understand why we did this. And chr1, chr2 are redundant
296-
// if (chr2 > chr1) {
297-
// //transpose
298-
// int tc2 = chr2;
299-
// int tp2 = pos2;
300-
// chr2 = chr1;
301-
// pos2 = pos1;
302-
// chr1 = tc2;
303-
// pos1 = tp2;
304-
// }
305-
System.out.println("chr1 = " + chr1 + " chr2 = " + chr2 + " pos1 = " + pos1 + " pos2 = " + pos2);
296+
if (chr2 > chr1) {
297+
//transpose
298+
int tc2 = chr2;
299+
int tp2 = pos2;
300+
chr2 = chr1;
301+
pos2 = pos1;
302+
chr1 = tc2;
303+
pos1 = tp2;
304+
}
306305
matrix.incrementCount(pos1, pos2);
307306
}
308307

0 commit comments

Comments
 (0)