Spaces:
Sleeping
Sleeping
fix: use `name` in loop
Browse files
app.py
CHANGED
@@ -75,10 +75,6 @@ def assign_confidence(x: pl.Expr) -> pl.Expr:
|
|
75 |
|
76 |
@solara.lab.task
|
77 |
def load_result() -> Optional[AlphaFoldData]:
|
78 |
-
if file_info.value is None:
|
79 |
-
print("none done")
|
80 |
-
return "None"
|
81 |
-
|
82 |
f_idx = result_index.value
|
83 |
with ZipFile(file_info.value["file_obj"]) as zf:
|
84 |
files = zf.namelist()
|
@@ -131,7 +127,7 @@ def load_result() -> Optional[AlphaFoldData]:
|
|
131 |
|
132 |
color_query = []
|
133 |
tooltip_query = []
|
134 |
-
for chain, resn,
|
135 |
res_color = {
|
136 |
"struct_asym_id": chain,
|
137 |
"residue_number": resn,
|
|
|
75 |
|
76 |
@solara.lab.task
|
77 |
def load_result() -> Optional[AlphaFoldData]:
|
|
|
|
|
|
|
|
|
78 |
f_idx = result_index.value
|
79 |
with ZipFile(file_info.value["file_obj"]) as zf:
|
80 |
files = zf.namelist()
|
|
|
127 |
|
128 |
color_query = []
|
129 |
tooltip_query = []
|
130 |
+
for chain, resn, name, mean_plddt, confidence in residue_df.iter_rows():
|
131 |
res_color = {
|
132 |
"struct_asym_id": chain,
|
133 |
"residue_number": resn,
|