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
471
+
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
472
473
473
# this list stores the candidate interactions
474
474
# from this particular connected component
@@ -479,7 +479,7 @@ def main():
479
479
while (len(Curr_Comp_Tuple_List) >0):
480
480
curr_elem=heapq.heappop(Curr_Comp_Tuple_List)
481
481
if0:
482
-
print'extracted element from heap: ', curr_elem
482
+
print('extracted element from heap: ', curr_elem)
483
483
484
484
#===================================
485
485
# earlier condition - 1 - sourya
@@ -509,7 +509,7 @@ def main():
509
509
subl= [curr_elem[2], curr_elem[3]]
510
510
Final_Rep_Key_List.append(subl)
511
511
if0:
512
-
print'\t\t *** inserted element in the final list: ', str(subl), ' generated Final_Rep_Key_List: ', str(Final_Rep_Key_List)
512
+
print('\t\t *** inserted element in the final list: ', str(subl), ' generated Final_Rep_Key_List: ', str(Final_Rep_Key_List))
513
513
continue
514
514
515
515
# otherwise, check with the existing interactions
@@ -523,7 +523,7 @@ def main():
523
523
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
524
flag=True
525
525
if0:
526
-
print' --- current element is within neighborhood of the bins indexed by ', i, ' of Final_Rep_Key_List'
526
+
print(' --- current element is within neighborhood of the bins indexed by ', i, ' of Final_Rep_Key_List')
527
527
break
528
528
529
529
if (flag==False):
@@ -532,7 +532,7 @@ def main():
532
532
subl= [curr_elem[2], curr_elem[3]]
533
533
Final_Rep_Key_List.append(subl)
534
534
if0:
535
-
print'\t\t *** inserted element in the final list: ', str(subl), ' generated Final_Rep_Key_List: ', str(Final_Rep_Key_List)
535
+
print('\t\t *** inserted element in the final list: ', str(subl), ' generated Final_Rep_Key_List: ', str(Final_Rep_Key_List))
536
536
537
537
# now print the candidate interactions
538
538
# of the current component
@@ -549,7 +549,7 @@ def main():
549
549
qval=CurrChrDict[rep_bin_key]._GetQVal()
550
550
551
551
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
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)
553
553
554
554
# write the interaction in the specified output file
print' **** Processing the connected component ===== number of elements: ', len(Curr_Comp_Tuple_List)
602
+
print(' **** Processing the connected component ===== number of elements: ', len(Curr_Comp_Tuple_List))
603
603
604
604
# now extract elements from the constructed queue
605
605
while (len(Curr_Comp_Tuple_List) >0):
606
606
# extract the first element from the min-heap
607
607
# element with the lowest value
608
608
curr_elem=heapq.heappop(Curr_Comp_Tuple_List)
609
609
if0:
610
-
print'extracted element from heap: ', curr_elem
610
+
print('extracted element from heap: ', curr_elem)
611
611
612
612
# if this is the first element
613
613
# then insert they key in the candidate set of interactions
614
614
if (len(Final_Rep_Key_List) ==0):
615
615
subl= [curr_elem[2], curr_elem[3]]
616
616
Final_Rep_Key_List.append(subl)
617
617
if0:
618
-
print'*** inserted element in the final list: ', str(subl)
618
+
print('*** inserted element in the final list: ', str(subl))
619
619
continue
620
620
621
621
# otherwise, check with the existing interactions
@@ -629,7 +629,7 @@ def main():
629
629
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
630
flag=True
631
631
if0:
632
-
print' --- current element is within neighborhood of the existing (included) bin ', Final_Rep_Key_List[i]
632
+
print(' --- current element is within neighborhood of the existing (included) bin ', Final_Rep_Key_List[i])
633
633
break
634
634
635
635
if (flag==False):
@@ -638,12 +638,12 @@ def main():
638
638
subl= [curr_elem[2], curr_elem[3]]
639
639
Final_Rep_Key_List.append(subl)
640
640
if0:
641
-
print'*** inserted element in the final list: ', str(subl)
641
+
print('*** inserted element in the final list: ', str(subl))
642
642
643
643
# now print the candidate interactions
644
644
# of the current component
645
645
if0:
646
-
print'\n\n**** Printing selected loops of the connected component ***\n\n'
646
+
print('\n\n**** Printing selected loops of the connected component ***\n\n')
0 commit comments