Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1288,14 +1288,14 @@ def create_html_report(df, file=None, task=None, opts=(), progress=gr.Progress(t
|
|
1288 |
# Add alert emoji for sequence identity below 0.85
|
1289 |
if unique_df['Max. Sequence Identity to Training Targets'].iloc[0] < 0.85:
|
1290 |
unique_df['Max. Sequence Identity to Training Targets'] = (
|
1291 |
-
|
1292 |
)
|
1293 |
|
1294 |
if 'Max. Tanimoto Similarity to Training Compounds' in unique_df.columns:
|
1295 |
# Add alert emoji for sequence identity below 0.85
|
1296 |
if unique_df['Max. Tanimoto Similarity to Training Compounds'].iloc[0] < 0.85:
|
1297 |
unique_df['Max. Tanimoto Similarity to Training Compounds'] = (
|
1298 |
-
|
1299 |
)
|
1300 |
|
1301 |
if any(unique_df.columns.isin(bool_cols)):
|
|
|
1288 |
# Add alert emoji for sequence identity below 0.85
|
1289 |
if unique_df['Max. Sequence Identity to Training Targets'].iloc[0] < 0.85:
|
1290 |
unique_df['Max. Sequence Identity to Training Targets'] = (
|
1291 |
+
unique_df['Max. Sequence Identity to Training Targets'].apply(lambda x: f'{x:.3f} ⚠️')
|
1292 |
)
|
1293 |
|
1294 |
if 'Max. Tanimoto Similarity to Training Compounds' in unique_df.columns:
|
1295 |
# Add alert emoji for sequence identity below 0.85
|
1296 |
if unique_df['Max. Tanimoto Similarity to Training Compounds'].iloc[0] < 0.85:
|
1297 |
unique_df['Max. Tanimoto Similarity to Training Compounds'] = (
|
1298 |
+
unique_df['Max. Tanimoto Similarity to Training Compounds'].apply(lambda x: f'{x:.3f} ⚠️')
|
1299 |
)
|
1300 |
|
1301 |
if any(unique_df.columns.isin(bool_cols)):
|