Skip to content

Commit f7cba5c

Browse files
committed
#35 - is necessary in order to have a probable B.1.1.529 definition instead of a probable BA.1 definition, breaking change
1 parent e48d410 commit f7cba5c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scorpio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
_program = "scorpio"
2-
__version__ = "0.3.15"
2+
__version__ = "0.3.16"

scorpio/scripts/type_constellations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,7 @@ def classify_constellations(in_fasta, list_constellation_files, constellation_na
10151015
children = {}
10161016
for constellation in constellation_dict:
10171017
constellation_name = name_dict[constellation]
1018+
logging.debug("Consider constellation %s" %constellation_name)
10181019
parents = []
10191020
if not constellation_name:
10201021
continue
@@ -1037,19 +1038,21 @@ def classify_constellations(in_fasta, list_constellation_files, constellation_na
10371038
children[parent].append(constellation)
10381039

10391040
if call:
1041+
logging.debug("Have call for %s" %constellation_name)
10401042
if call_all:
10411043
if call != "default":
10421044
constellation_name = "%s %s" %(call, constellation_name)
10431045
lineages.append(constellation_name)
10441046
names.append(constellation)
10451047
elif constellation in children and best_constellation in children[constellation]:
1046-
continue
1048+
logging.debug("Ignore as parent of best constellation")
10471049
elif (not best_constellation) \
10481050
or (counts['support'] > best_support) \
10491051
or (counts['support'] == best_support and counts['conflict'] < best_conflict)\
10501052
or (counts['support'] == best_support and counts['conflict'] == best_conflict and counts['rules'] > best_counts["rules"])\
10511053
or (best_constellation in parents):
10521054
best_constellation = constellation
1055+
logging.debug("Set best constellation %s" %best_constellation)
10531056
best_support = counts['support']
10541057
best_conflict = counts['conflict']
10551058
best_counts = counts

0 commit comments

Comments
 (0)