-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from jyaacoub/development
GVPL x aflow and aflow_ring3 implementation and results
- Loading branch information
Showing
24 changed files
with
1,572 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,42 @@ | ||
#%% | ||
from src.analysis.figures import prepare_df | ||
# %% | ||
import logging | ||
from typing import OrderedDict | ||
|
||
df = prepare_df() | ||
import seaborn as sns | ||
from matplotlib import pyplot as plt | ||
from statannotations.Annotator import Annotator | ||
|
||
from src.analysis.figures import prepare_df, custom_fig, fig_combined | ||
|
||
df = prepare_df() | ||
sel_dataset = 'PDBbind' | ||
exclude = [] | ||
sel_col = 'cindex' | ||
# %% | ||
df[df.edge.str.contains('ring3') | df.edge.str.contains('aflow')] | ||
|
||
#%% | ||
from src.analysis.figures import fig5_edge_feat_violin | ||
# models to plot: | ||
# - Original model with (nomsa, binary) and (original, binary) features for protein and ligand respectively | ||
# - Aflow models with (nomsa, aflow*) and (original, binary) # x2 models here (aflow and aflow_ring3) | ||
# - GVP protein model (gvp, binary) and (original, binary) | ||
# - GVP ligand model (nomsa, binary) and (gvp, binary) | ||
|
||
models = { | ||
'DG': ('nomsa', 'binary', 'original', 'binary'), | ||
'aflow': ('nomsa', 'aflow', 'original', 'binary'), | ||
'aflow_ring3': ('nomsa', 'aflow_ring3', 'original', 'binary'), | ||
# 'gvpP': ('gvp', 'binary', 'original', 'binary'), | ||
'gvpL': ('nomsa', 'binary', 'gvp', 'binary'), | ||
'gvpL_aflow': ('nomsa', 'aflow', 'gvp', 'binary'), | ||
'gvpL_aflow_rng3': ('nomsa', 'aflow_ring3', 'gvp', 'binary'), | ||
} | ||
|
||
# custom_fig(df, models, sel_dataset, sel_col) | ||
|
||
# %% | ||
fig, axes = fig_combined(df, datasets=['PDBbind'], fig_callable=custom_fig, | ||
models=models, metrics=['pearson', 'cindex', 'mse', 'mae'], | ||
fig_scale=(8,5)) | ||
plt.xticks(rotation=45) | ||
|
||
fig5_edge_feat_violin(df, sel_dataset='PDBbind', exclude=['simple'], | ||
sel_col='cindex', show=True, add_stats=False) | ||
fig5_edge_feat_violin(df, sel_dataset='PDBbind', exclude=['simple'], | ||
sel_col='mse', show=True, add_stats=False) | ||
|
||
# %% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.