Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1119,7 +1119,7 @@ def update_df(file, progress=gr.Progress(track_tqdm=True)):
|
|
1119 |
if task == 'Compound-Protein Binding Affinity':
|
1120 |
# Convert Y^ from pIC50 (nM) to IC50 (nM)
|
1121 |
if 'Y^' in df.columns:
|
1122 |
-
df['Y^'] = 10 ** (-df['Y^']
|
1123 |
|
1124 |
n_compound = df['X1'].nunique()
|
1125 |
n_protein = df['X2'].nunique()
|
|
|
1119 |
if task == 'Compound-Protein Binding Affinity':
|
1120 |
# Convert Y^ from pIC50 (nM) to IC50 (nM)
|
1121 |
if 'Y^' in df.columns:
|
1122 |
+
df['Y^'] = 10 ** (-df['Y^']) * 1e9
|
1123 |
|
1124 |
n_compound = df['X1'].nunique()
|
1125 |
n_protein = df['X2'].nunique()
|