-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from jvhagey/main
Encoding Fix
- Loading branch information
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
getcontext().prec = 4 | ||
import math | ||
import argparse | ||
from unidecode import unidecode | ||
|
||
##Written by Richard Stanton ([email protected]) | ||
##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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
getcontext().prec = 4 | ||
import math | ||
import argparse | ||
from unidecode import unidecode | ||
|
||
##Written by Richard Stanton ([email protected]) | ||
##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) | ||
|