Skip to content

Commit

Permalink
fix: added ESM to fig4 violin #46
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaacoub committed Nov 13, 2023
1 parent 1e9b3ce commit 7052161
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
26 changes: 19 additions & 7 deletions playground.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# # %%
# from src.data_processing.init_dataset import create_datasets

# create_datasets(
# data_opt=['davis'],
# feat_opt=['foldseek'],
# edge_opt=['binary']
# )
# # %%
# from src.utils.loader import Loader
# d2 = Loader.load_dataset(data='davis', pro_feature='nomsa',
# edge_opt='anm')
# %%
from src.data_processing.init_dataset import create_datasets
from src.data_analysis.figures import fig4_pro_feat_violin, prepare_df

df = prepare_df('results/model_media/model_stats.csv')

create_datasets(
data_opt=['davis'],
feat_opt=['foldseek'],
edge_opt=['binary']
)
# %%
#%%
fig4_pro_feat_violin(df, sel_dataset='davis', sel_col='mse',
add_stats=True, verbose=False)
# %%
5 changes: 3 additions & 2 deletions src/data_analysis/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,11 @@ def fig4_pro_feat_violin(df, sel_dataset='davis', verbose=False, sel_col='cindex

# Annotation for stats
if add_stats:
pairs=[('nomsa', 'msa'), ('nomsa', 'shannon'), ('msa', 'shannon')]
pairs=[('nomsa', 'msa'), ('nomsa', 'shannon'), ('msa', 'shannon'),
('ESM', 'nomsa'), ('ESM', 'msa'), ('ESM', 'shannon')]
annotator = Annotator(ax, pairs, data=filtered_df, x='feat', y=sel_col, verbose=verbose)
annotator.configure(test='Mann-Whitney', text_format='star', loc='inside',
hide_non_significant=True)
hide_non_significant=not verbose)
annotator.apply_and_annotate()

if show:
Expand Down

0 comments on commit 7052161

Please sign in to comment.