@@ -369,7 +369,6 @@ def extract_element(atom_name):
369
369
370
370
edgecolors = np .array (list (colors .values ()))
371
371
if highlight is not None and len (highlight ) > 0 :
372
- print (highlight )
373
372
edgecolors [highlight ] = 'black'
374
373
375
374
# Visualize the graph
@@ -577,7 +576,7 @@ def run(self):
577
576
578
577
current_run_config = self .get_current_run_config ()
579
578
580
- # If Ring has already been run on that obj and the run config didn't changed then just visualize results
579
+ # If Ring has already been run on that obj and the run config didn't change then just visualize results
581
580
if obj_name in self .prev_launch_config .keys () and self .prev_launch_config [obj_name ] == current_run_config \
582
581
and not self .widg .override_memory .isChecked ():
583
582
self .visualize ()
@@ -709,10 +708,10 @@ def visualize(self, selection=None, of_type=None):
709
708
stored .chain_resi = set ()
710
709
cmd .iterate (obj , 'stored.chain_resi.add((chain, resi))' )
711
710
conn_freq = get_freq (stored .model , self .temp_dir .name )
712
-
713
711
def draw ():
714
712
interactions_per_state = pd .read_csv (file_pth , sep = '\t ' )
715
713
714
+
716
715
if len (interactions_per_state ) == 0 :
717
716
self .log ("No interactions found in the object" , warning = True )
718
717
return
@@ -734,7 +733,8 @@ def draw():
734
733
for int_type in intTypeMap .keys ():
735
734
interactions_per_type .setdefault (int_type , list ())
736
735
737
- for (nodeId1 , interaction , nodeId2 , _ , _ , _ , atom1 , atom2 , * _ ) in df .itertuples (index = False ):
736
+
737
+ for (nodeId1 , interaction , nodeId2 , _ , _ , atom1 , atom2 , * _ ) in df .itertuples (index = False ):
738
738
int_type , intRegion = interaction .split (":" )
739
739
node1 = Node (nodeId1 )
740
740
node2 = Node (nodeId2 )
@@ -773,10 +773,12 @@ def draw():
773
773
t += (atom1 ,)
774
774
else :
775
775
t += ("{}/{}/{}" .format (node1 .chain , str (node1 .resi ), atom1 ),)
776
+
776
777
if "," in str (atom2 ):
777
778
t += (atom2 ,)
778
779
else :
779
780
t += ("{}/{}/{}" .format (node2 .chain , str (node2 .resi ), atom2 ),)
781
+
780
782
interactions_per_type [int_type ].append (t )
781
783
782
784
# Update set of possible selected nodes
0 commit comments