Spaces:
Sleeping
Sleeping
Commit
·
9311c3a
1
Parent(s):
37bff71
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
@@ -195,8 +195,7 @@ def alphafold(input_set, mode, impute):
|
|
195 |
model_count[k] = int(v / 2) # two types of files for each file.
|
196 |
data_updated = pd.DataFrame(columns = data.columns)
|
197 |
new_ind =0
|
198 |
-
|
199 |
-
st.write(data)
|
200 |
for i in data.index:
|
201 |
uniprotID = data.at[i, 'uniprotID']
|
202 |
datapoint = data.at[i, 'datapoint']
|
@@ -253,8 +252,7 @@ def alphafold(input_set, mode, impute):
|
|
253 |
data_updated.at[new_ind, 'distance'] = domainDistanceModels(domStart, domEnd, coordinates, varPos)
|
254 |
for col in UNIPROT_ANNOTATION_COLS[0:30]:
|
255 |
allDist = []
|
256 |
-
|
257 |
-
st.write(col, data.at[i, col])
|
258 |
if (data.at[i, col] != np.NaN) & (data.at[i, col] != 'hit') & (data.at[i, col] != '[]') & (
|
259 |
data.at[i, col] != []):
|
260 |
annots_list = ast.literal_eval(data.at[i, col])
|
@@ -276,8 +274,7 @@ def alphafold(input_set, mode, impute):
|
|
276 |
data_updated.at[new_ind, col] = np.NaN
|
277 |
|
278 |
new_ind +=1
|
279 |
-
|
280 |
-
st.write(data_updated)
|
281 |
data_updated = selectMaxAnnot(data_updated)
|
282 |
data_updated = data_updated.sort_values(['hitTotal', 'annotTotal'], ascending = [False, True])
|
283 |
data_updated = data_updated.drop_duplicates(['datapoint'])
|
@@ -466,4 +463,4 @@ def alphafold(input_set, mode, impute):
|
|
466 |
minutes, seconds = divmod(rem, 60)
|
467 |
print("Time passed: {:0>2}:{:0>2}:{:05.2f}".format(int(hours), int(minutes), seconds))
|
468 |
|
469 |
-
return
|
|
|
195 |
model_count[k] = int(v / 2) # two types of files for each file.
|
196 |
data_updated = pd.DataFrame(columns = data.columns)
|
197 |
new_ind =0
|
198 |
+
|
|
|
199 |
for i in data.index:
|
200 |
uniprotID = data.at[i, 'uniprotID']
|
201 |
datapoint = data.at[i, 'datapoint']
|
|
|
252 |
data_updated.at[new_ind, 'distance'] = domainDistanceModels(domStart, domEnd, coordinates, varPos)
|
253 |
for col in UNIPROT_ANNOTATION_COLS[0:30]:
|
254 |
allDist = []
|
255 |
+
|
|
|
256 |
if (data.at[i, col] != np.NaN) & (data.at[i, col] != 'hit') & (data.at[i, col] != '[]') & (
|
257 |
data.at[i, col] != []):
|
258 |
annots_list = ast.literal_eval(data.at[i, col])
|
|
|
274 |
data_updated.at[new_ind, col] = np.NaN
|
275 |
|
276 |
new_ind +=1
|
277 |
+
|
|
|
278 |
data_updated = selectMaxAnnot(data_updated)
|
279 |
data_updated = data_updated.sort_values(['hitTotal', 'annotTotal'], ascending = [False, True])
|
280 |
data_updated = data_updated.drop_duplicates(['datapoint'])
|
|
|
463 |
minutes, seconds = divmod(rem, 60)
|
464 |
print("Time passed: {:0>2}:{:0>2}:{:05.2f}".format(int(hours), int(minutes), seconds))
|
465 |
|
466 |
+
return final_data
|