Skip to content

Commit

Permalink
🐛 sync and specify selected
Browse files Browse the repository at this point in the history
- for large pep and evi, the top five are already
  the correct set
  • Loading branch information
Henry Webel committed Nov 26, 2023
1 parent 748a1d7 commit 1f2d682
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
22 changes: 16 additions & 6 deletions project/03_2_best_models_comparison_fig2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"FOLDER = Path('runs/mnar_mcar/')\n",
"SIZE = 'l'\n",
"files_in = {\n",
" 'protein groups': FOLDER / 'pg_l_25MNAR/figures/2_1_performance_test.csv',\n",
" 'protein groups': FOLDER / 'pg_l_25MNAR/figures/2_1_performance_test_sel.csv',\n",
" 'peptides': FOLDER / 'pep_l_25MNAR/figures/2_1_performance_test.csv',\n",
" 'precursors': FOLDER / 'evi_l_25MNAR/figures/2_1_performance_test.csv'\n",
"}"
Expand All @@ -53,9 +53,9 @@
"FOLDER = Path('runs/mnar_mcar/')\n",
"SIZE = 'm'\n",
"files_in = {\n",
" 'protein groups': FOLDER / 'pg_m_25MNAR/figures/2_1_performance_test.csv',\n",
" 'peptides': FOLDER / 'pep_m_25MNAR/figures/2_1_performance_test.csv',\n",
" 'precursors': FOLDER / 'evi_m_25MNAR/figures/2_1_performance_test.csv'\n",
" 'protein groups': FOLDER / 'pg_m_25MNAR/figures/2_1_performance_test_sel.csv',\n",
" 'peptides': FOLDER / 'pep_m_25MNAR/figures/2_1_performance_test_sel.csv',\n",
" 'precursors': FOLDER / 'evi_m_25MNAR/figures/2_1_performance_test_sel.csv'\n",
"}"
]
},
Expand Down Expand Up @@ -154,7 +154,9 @@
" fontsize=7\n",
" ))\n",
"\n",
"ax = vaep.plotting.add_height_to_barplot(ax, size=5)\n",
"\n",
"ax = vaep.plotting.add_height_to_barplot(ax, size=6, rotated=True)\n",
"ax.set_ylim((0, 0.75))\n",
"ax.legend(fontsize=5, loc='lower right')\n",
"text = (\n",
" df['text']\n",
Expand All @@ -163,7 +165,7 @@
" .stack().loc[pd.IndexSlice[ORDER_MODELS, ORDER_DATA]]\n",
"\n",
")\n",
"ax = vaep.plotting.add_text_to_barplot(ax, text, size=5)\n",
"ax = vaep.plotting.add_text_to_barplot(ax, text, size=6)\n",
"fig = ax.get_figure()\n",
"fig.tight_layout()\n",
"vaep.savefig(fig, fname)"
Expand Down Expand Up @@ -236,6 +238,14 @@
"perf.to_excel(fname)\n",
"fname.as_posix()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d97a66a0",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
6 changes: 4 additions & 2 deletions project/03_2_best_models_comparison_fig2.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
SIZE = 'l'
files_in = {
'protein groups': FOLDER / 'pg_l_25MNAR/figures/2_1_performance_test_sel.csv',
'peptides': FOLDER / 'pep_l_25MNAR/figures/2_1_performance_test_sel.csv',
'precursors': FOLDER / 'evi_l_25MNAR/figures/2_1_performance_test_sel.csv'
'peptides': FOLDER / 'pep_l_25MNAR/figures/2_1_performance_test.csv',
'precursors': FOLDER / 'evi_l_25MNAR/figures/2_1_performance_test.csv'
}

# %%
Expand Down Expand Up @@ -155,3 +155,5 @@
fname = FOLDER / f'performance_summary_{SIZE}.xlsx'
perf.to_excel(fname)
fname.as_posix()

# %%

0 comments on commit 1f2d682

Please sign in to comment.