Skip to content

Commit

Permalink
changes to multi-omics plots
Browse files Browse the repository at this point in the history
  • Loading branch information
jjc2718 committed Jul 1, 2022
1 parent 8a582f9 commit 41d2521
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 134 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
all_results_df.sort_values(by='p_value').head(10)


# In[7]:
# In[13]:


sns.set({'figure.figsize': (24, 6)})
Expand All @@ -171,7 +171,7 @@
SIG_ALPHA,
metric=plot_metric,
verbose=True,
label_x_lower_bounds=[0.2, 0.2, 0.4],
label_x_lower_bounds=[0.2, 0.3, 0.5],
label_y_lower_bounds=[4, 4, 5],
mark_overlap=True,
overlap_reference='cancer gene set')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


BAYES_OPT = False
MLP = True
MLP = False

if BAYES_OPT:
results_dir = Path(
Expand Down Expand Up @@ -226,7 +226,8 @@
handle = mpatches.Patch(color=colors[ix], label=data)
handles.append(handle)

plt.legend(title='Data types used to train model', handles=handles, loc='lower right')
plt.legend(title='', handles=handles,
loc='lower right', fontsize=15, title_fontsize=15)
plt.tight_layout()

if SAVE_FIGS:
Expand Down Expand Up @@ -408,7 +409,7 @@
compare_df[compare_df.gene == 'TP53'].head(10)


# In[ ]:
# In[17]:


sns.set({'figure.figsize': (13, 6)})
Expand All @@ -426,9 +427,3 @@
plt.savefig(images_dir / svg_filename, bbox_inches='tight')
plt.savefig(images_dir / png_filename, dpi=300, bbox_inches='tight')


# In[ ]:




250 changes: 127 additions & 123 deletions 05_classify_mutations_multimodal/plot_multimodal_results.ipynb

Large diffs are not rendered by default.

0 comments on commit 41d2521

Please sign in to comment.