Spaces:
Sleeping
Sleeping
Commit
·
0df7f2f
1
Parent(s):
c41c367
Update code/add_structure.py
Browse files- code/add_structure.py +2 -2
code/add_structure.py
CHANGED
@@ -339,9 +339,9 @@ def selectMaxAnnot(data):
|
|
339 |
nanCounter = 0
|
340 |
hitCounter = 0
|
341 |
for col in UNIPROT_ANNOTATION_COLS[0:30]:
|
342 |
-
if (str(data.at[i,col]) != 'nan') and (data.at[i,col] != '[]' and (data.at[i,col] != 'hit') and (data.at[i,col] != ''):
|
343 |
total += float(data.at[i,col])
|
344 |
-
elif (str(data.at[i,col]) == 'nan') or (data.at[i,col] == '[]'
|
345 |
nanCounter +=1
|
346 |
if data.at[i,col] == 'hit':
|
347 |
hitCounter += 1
|
|
|
339 |
nanCounter = 0
|
340 |
hitCounter = 0
|
341 |
for col in UNIPROT_ANNOTATION_COLS[0:30]:
|
342 |
+
if (str(data.at[i,col]) != 'nan') and (data.at[i,col] != '[]') and (data.at[i,col] != 'hit') and (data.at[i,col] != ''):
|
343 |
total += float(data.at[i,col])
|
344 |
+
elif (str(data.at[i,col]) == 'nan') or (data.at[i,col] == '[]') or (data.at[i,col] != ''):
|
345 |
nanCounter +=1
|
346 |
if data.at[i,col] == 'hit':
|
347 |
hitCounter += 1
|