diff --git a/GAMMA-S.py b/GAMMA-S.py index f4c26c6..aec26d3 100644 --- a/GAMMA-S.py +++ b/GAMMA-S.py @@ -12,6 +12,7 @@ getcontext().prec = 4 import math import argparse +from unidecode import unidecode ##Written by Richard Stanton (njr5@cdc.gov) ##Requires Python/3+ and blat @@ -581,7 +582,9 @@ def Best_List(input_contig_list, length_minimum): if Add == 1 and Star == 0 and float(List1[14]) > (length_minimum / 100): Output_List.append(items) elif Add == 1 and Star == 1 and float(List1[14]) > (length_minimum / 100): - List1[0] = List1[0] + '‡' + #endcoding '‡' + double_cross = '‡' + List1[0] = List1[0] + double_cross.encode('ascii', 'ignore').decode('utf-8') Out = '\t'.join(List1) Output_List.append(Out) return(Output_List) diff --git a/GAMMA.py b/GAMMA.py index ff6e46f..fd0dcaf 100644 --- a/GAMMA.py +++ b/GAMMA.py @@ -13,6 +13,7 @@ getcontext().prec = 4 import math import argparse +from unidecode import unidecode ##Written by Richard Stanton (njr5@cdc.gov) ##Requires Python/3+ and blat @@ -910,7 +911,9 @@ def Best_List(input_contig_list): Out = '\t'.join(List1[0:8]) + '\t' + List1[13] + '\t' + '\t'.join(List1[8:13]) + '\t' + List1[-1] Output_List.append(Out) elif Add == 1 and float(List1[10]) > 0.5 and Star == 1: - List1[0] = List1[0] + '‡' + #encoding '‡' + double_cross = '‡' + List1[0] = List1[0] + double_cross.encode('ascii', 'ignore').decode('utf-8') Out = '\t'.join(List1[0:8]) + '\t' + List1[13] + '\t' + '\t'.join(List1[8:13]) + '\t' + List1[-1] Output_List.append(Out) return(Output_List)