@@ -1015,6 +1015,7 @@ def classify_constellations(in_fasta, list_constellation_files, constellation_na
1015
1015
children = {}
1016
1016
for constellation in constellation_dict :
1017
1017
constellation_name = name_dict [constellation ]
1018
+ logging .debug ("Consider constellation %s" % constellation_name )
1018
1019
parents = []
1019
1020
if not constellation_name :
1020
1021
continue
@@ -1037,19 +1038,21 @@ def classify_constellations(in_fasta, list_constellation_files, constellation_na
1037
1038
children [parent ].append (constellation )
1038
1039
1039
1040
if call :
1041
+ logging .debug ("Have call for %s" % constellation_name )
1040
1042
if call_all :
1041
1043
if call != "default" :
1042
1044
constellation_name = "%s %s" % (call , constellation_name )
1043
1045
lineages .append (constellation_name )
1044
1046
names .append (constellation )
1045
1047
elif constellation in children and best_constellation in children [constellation ]:
1046
- continue
1048
+ logging . debug ( "Ignore as parent of best constellation" )
1047
1049
elif (not best_constellation ) \
1048
1050
or (counts ['support' ] > best_support ) \
1049
1051
or (counts ['support' ] == best_support and counts ['conflict' ] < best_conflict )\
1050
1052
or (counts ['support' ] == best_support and counts ['conflict' ] == best_conflict and counts ['rules' ] > best_counts ["rules" ])\
1051
1053
or (best_constellation in parents ):
1052
1054
best_constellation = constellation
1055
+ logging .debug ("Set best constellation %s" % best_constellation )
1053
1056
best_support = counts ['support' ]
1054
1057
best_conflict = counts ['conflict' ]
1055
1058
best_counts = counts
0 commit comments