Skip to content

Commit d6f53a3

Browse files
committed
fix python3.5
1 parent 4dd95e7 commit d6f53a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Intervar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def read_datasets():
354354
with myGzipFile(paras['bs2_snps'], "rb") as fh:
355355

356356
#fh = open(paras['bs2_snps'], "r")
357-
strs = fh.read()
357+
strs = fh.read().decode()
358358
for line2 in strs.split('\n'):
359359
cls2=line2.split(' ')
360360
# PS4_snps_dict
@@ -1073,7 +1073,7 @@ def check_PM2(line,Freqs_flgs,Allels_flgs,Funcanno_flgs,mim2gene_dict,mim2gene_d
10731073
else:
10741074
pass
10751075

1076-
if mim_num >0: # it has mim, check the dom or recess and freq
1076+
if int(mim_num) >0: # it has mim, check the dom or recess and freq
10771077
try:
10781078
if mim_recessive_dict[mim_num]=="1": # it is recessive
10791079
for key in Freqs_flgs.keys():
@@ -1598,7 +1598,7 @@ def check_BP7(line,Funcanno_flgs,Allels_flgs):
15981598
if cls[Funcanno_flgs['dbscSNV_RF_SCORE']]<0.6 and cls[Funcanno_flgs['dbscSNV_ADA_SCORE']]<0.6:
15991599
BP7_t1=1
16001600
# check the conservation score of gerp++ > 2
1601-
if cls[Funcanno_flgs['GERP++_RS']] <= cutoff_conserv or cls[Funcanno_flgs['GERP++_RS']] == '.' :
1601+
if float(cls[Funcanno_flgs['GERP++_RS']]) <= float(cutoff_conserv) or cls[Funcanno_flgs['GERP++_RS']] == '.' :
16021602
BP7_t2=1
16031603

16041604
if BP7_t1 !=0 and BP7_t2 != 0 :

0 commit comments

Comments
 (0)