Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -917,7 +917,8 @@ def submit_predict(predict_filepath, task, preset, target_family, opts, job_info
|
|
917 |
def max_sim(smiles):
|
918 |
return max_tanimoto_similarity(smiles, seen_smiles_with_fp=pos_compounds_df)
|
919 |
|
920 |
-
prediction_df[['Max. Tanimoto Similarity
|
|
|
921 |
prediction_df['X1'].parallel_apply(max_sim).apply(pd.Series)
|
922 |
)
|
923 |
max_sim.cache_clear()
|
@@ -931,7 +932,8 @@ def submit_predict(predict_filepath, task, preset, target_family, opts, job_info
|
|
931 |
compound_targets = df_training.loc[df_training['X1'] == compound]
|
932 |
return max_sequence_identity(x2, seen_fastas=compound_targets)
|
933 |
|
934 |
-
prediction_df[['Max. Sequence Identity
|
|
|
935 |
prediction_df['X1^'].parallel_apply(calculate_max_sequence_identity).apply(pd.Series)
|
936 |
)
|
937 |
prediction_df.drop(['X1^'], axis=1, inplace=True)
|
|
|
917 |
def max_sim(smiles):
|
918 |
return max_tanimoto_similarity(smiles, seen_smiles_with_fp=pos_compounds_df)
|
919 |
|
920 |
+
prediction_df[['Max. Tanimoto Similarity to Known Target Ligands',
|
921 |
+
'Max. Tanimoto Similarity Target Ligand']] = (
|
922 |
prediction_df['X1'].parallel_apply(max_sim).apply(pd.Series)
|
923 |
)
|
924 |
max_sim.cache_clear()
|
|
|
932 |
compound_targets = df_training.loc[df_training['X1'] == compound]
|
933 |
return max_sequence_identity(x2, seen_fastas=compound_targets)
|
934 |
|
935 |
+
prediction_df[['Max. Sequence Identity to Known Ligand Targets',
|
936 |
+
'Max. Sequence Identity Ligand Target']] = (
|
937 |
prediction_df['X1^'].parallel_apply(calculate_max_sequence_identity).apply(pd.Series)
|
938 |
)
|
939 |
prediction_df.drop(['X1^'], axis=1, inplace=True)
|