Skip to content

Commit

Permalink
sorted for O mixed antigen is working
Browse files Browse the repository at this point in the history
  • Loading branch information
kbessonov1984 committed Nov 7, 2024
1 parent c203a3b commit 6e38b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ectyper/predictionFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def get_prediction(per_genome_df):


if highsimilarity_oantigens:
mixedoantigen = sorted([selectedOantigen] + highsimilarity_oantigens, key = lambda x: re.search('O(\d+)',x).group(1), reverse=True)
mixedoantigen = sorted([selectedOantigen] + highsimilarity_oantigens, key = lambda x: int(re.search(r'O(\d+)',x).group(1)), reverse=False)
serotype['O']['serogroup'] = "/".join(mixedoantigen)
LOG.info("Highly similar O-antigen candidates were found for {}".format(mixedoantigen))
elif selectedOantigen != "":
Expand Down

0 comments on commit 6e38b40

Please sign in to comment.