You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print' --> current connected component: max CC: ', max_cc, ' min Q val: ', min_qval, ' top K (TopPctElem): ', TopPctElem, ' custom_cc threshold: ', custom_cc, ' custom_qval threshold: ', custom_qval
473
+
print(' --> current connected component: max CC: ', max_cc, ' min Q val: ', min_qval, ' top K (TopPctElem): ', TopPctElem, ' custom_cc threshold: ', custom_cc, ' custom_qval threshold: ', custom_qval)
472
474
473
475
# this list stores the candidate interactions
474
476
# from this particular connected component
@@ -479,7 +481,7 @@ def main():
479
481
while (len(Curr_Comp_Tuple_List) >0):
480
482
curr_elem=heapq.heappop(Curr_Comp_Tuple_List)
481
483
if0:
482
-
print'extracted element from heap: ', curr_elem
484
+
print('extracted element from heap: ', curr_elem)
483
485
484
486
#===================================
485
487
# earlier condition - 1 - sourya
@@ -509,7 +511,7 @@ def main():
509
511
subl= [curr_elem[2], curr_elem[3]]
510
512
Final_Rep_Key_List.append(subl)
511
513
if0:
512
-
print'\t\t *** inserted element in the final list: ', str(subl), ' generated Final_Rep_Key_List: ', str(Final_Rep_Key_List)
514
+
print('\t\t *** inserted element in the final list: ', str(subl), ' generated Final_Rep_Key_List: ', str(Final_Rep_Key_List))
513
515
continue
514
516
515
517
# otherwise, check with the existing interactions
@@ -523,7 +525,7 @@ def main():
523
525
if (((abs(Final_Rep_Key_List[i][0] -curr_elem[2])) *bin_size) <=NeighborHoodBinThr) and (((abs(Final_Rep_Key_List[i][1] -curr_elem[3])) *bin_size) <=NeighborHoodBinThr):
524
526
flag=True
525
527
if0:
526
-
print' --- current element is within neighborhood of the bins indexed by ', i, ' of Final_Rep_Key_List'
528
+
print(' --- current element is within neighborhood of the bins indexed by ', i, ' of Final_Rep_Key_List')
527
529
break
528
530
529
531
if (flag==False):
@@ -532,7 +534,7 @@ def main():
532
534
subl= [curr_elem[2], curr_elem[3]]
533
535
Final_Rep_Key_List.append(subl)
534
536
if0:
535
-
print'\t\t *** inserted element in the final list: ', str(subl), ' generated Final_Rep_Key_List: ', str(Final_Rep_Key_List)
537
+
print('\t\t *** inserted element in the final list: ', str(subl), ' generated Final_Rep_Key_List: ', str(Final_Rep_Key_List))
536
538
537
539
# now print the candidate interactions
538
540
# of the current component
@@ -549,7 +551,7 @@ def main():
549
551
qval=CurrChrDict[rep_bin_key]._GetQVal()
550
552
551
553
if0:
552
-
print'**** Selected bin key: ', rep_bin_key, ' start bin mid: ', (rep_bin1_low+rep_bin1_high)/2, ' end bin mid: ', (rep_bin2_low+rep_bin2_high) /2, ' cc: ', cc, ' pval: ', pval, ' qval: ', qval
554
+
print('**** Selected bin key: ', rep_bin_key, ' start bin mid: ', (rep_bin1_low+rep_bin1_high)/2, ' end bin mid: ', (rep_bin2_low+rep_bin2_high) /2, ' cc: ', cc, ' pval: ', pval, ' qval: ', qval)
553
555
554
556
# write the interaction in the specified output file
print' **** Processing the connected component ===== number of elements: ', len(Curr_Comp_Tuple_List)
604
+
print(' **** Processing the connected component ===== number of elements: ', len(Curr_Comp_Tuple_List))
603
605
604
606
# now extract elements from the constructed queue
605
607
while (len(Curr_Comp_Tuple_List) >0):
606
608
# extract the first element from the min-heap
607
609
# element with the lowest value
608
610
curr_elem=heapq.heappop(Curr_Comp_Tuple_List)
609
611
if0:
610
-
print'extracted element from heap: ', curr_elem
612
+
print('extracted element from heap: ', curr_elem)
611
613
612
614
# if this is the first element
613
615
# then insert they key in the candidate set of interactions
614
616
if (len(Final_Rep_Key_List) ==0):
615
617
subl= [curr_elem[2], curr_elem[3]]
616
618
Final_Rep_Key_List.append(subl)
617
619
if0:
618
-
print'*** inserted element in the final list: ', str(subl)
620
+
print('*** inserted element in the final list: ', str(subl))
619
621
continue
620
622
621
623
# otherwise, check with the existing interactions
@@ -629,7 +631,7 @@ def main():
629
631
if (((abs(Final_Rep_Key_List[i][0] -curr_elem[2])) *bin_size) <=NeighborHoodBinThr) and (((abs(Final_Rep_Key_List[i][1] -curr_elem[3])) *bin_size) <=NeighborHoodBinThr):
630
632
flag=True
631
633
if0:
632
-
print' --- current element is within neighborhood of the existing (included) bin ', Final_Rep_Key_List[i]
634
+
print(' --- current element is within neighborhood of the existing (included) bin ', Final_Rep_Key_List[i])
633
635
break
634
636
635
637
if (flag==False):
@@ -638,12 +640,12 @@ def main():
638
640
subl= [curr_elem[2], curr_elem[3]]
639
641
Final_Rep_Key_List.append(subl)
640
642
if0:
641
-
print'*** inserted element in the final list: ', str(subl)
643
+
print('*** inserted element in the final list: ', str(subl))
642
644
643
645
# now print the candidate interactions
644
646
# of the current component
645
647
if0:
646
-
print'\n\n**** Printing selected loops of the connected component ***\n\n'
648
+
print('\n\n**** Printing selected loops of the connected component ***\n\n')
0 commit comments