AlexsLemonade / OpenPBTA-analysis

The analysis repository for the Open Pediatric Brain Tumor Atlas Project
Other
99 stars 66 forks source link

Add tp53 figure and associated figure organizational changes #1275

Closed sjspielman closed 2 years ago

sjspielman commented 2 years ago

From Issue #1271, this PR adds a new figure and updates some existing ones. Specifically:

New figure scripts were added to generate_figures.sh, and any scripts that hadn't been added in there were also added in.

Directions for reviewers. Tell potential reviewers what kind of feedback you are soliciting.

Is the analysis in a mature enough form that the resulting figure(s) and/or table(s) are ready for review?

yes

Reproducibility Checklist

Documentation Checklist

sjspielman commented 2 years ago

@jaclyn-taroni I think the new commits have addressed the legend issue?

jaclyn-taroni commented 2 years ago

Grey background is still there https://github.com/AlexsLemonade/OpenPBTA-analysis/pull/1275#discussion_r838501181

sjspielman commented 2 years ago

Grey background is still there https://github.com/AlexsLemonade/OpenPBTA-analysis/pull/1275#discussion_r838501181 Woops forgot the theme!

sjspielman commented 2 years ago

I updated with theme_pubr() which gives us a horizontal legend by default. Would we prefer vertical?

jaclyn-taroni commented 2 years ago

Would we prefer vertical?

Probably, I think it gives us more flexibility when we assemble things. How about:

+ theme(legend.background = element_blank())
sjspielman commented 2 years ago

No success with + theme(legend.background = element_blank()) or other similar modifications, so I just slapped on a theme_classic(). Seems like it achieves the goal.

jharenza commented 2 years ago

@sjspielman I like the new TP53 boxplots with the hypermutant samples, but wanted to note for organizational purposes, this will be a part of figure 4, not figure 3 (since we don't describe the tp53 scores until figure4).

sjspielman commented 2 years ago

This may need further discussion. Part of this PR flipped the size of the mutational signatures plot to be horizontal specifically so that we could include the hypermutator plot with it. Both plots focus on the same set of cancer groups to explore, and this version of tp53 plot was in part established from an interest to look at hypermutators in conjunction with mutational signatures.

We'll probably want to come to an agreement on this before merging since it may necessitate reverting the mutational signatures plot back to vertical. I don't have very strong thoughts on this, so anyone with strong thoughts please chime in! @jaclyn-taroni @jharenza

jharenza commented 2 years ago

Ahhh, I was initially thinking that for figure 3, we would move the chromothripsis plots alongside the co-occurrence plots, then move mut sigs horizontal as the last panel below. Then, we would transition into figure 4- TP53 scores (original panels ABC), then the distribution highlighting hypermutaters. Then, either faceted below the TP53 distribution, telomerase distribution, followed by a final panel with the hazard plot.

Maybe I should write this up to work on the flow and see if we can get that to work.

jharenza commented 2 years ago

image

This was what I was sketching

sjspielman commented 2 years ago

Ahhh, I was initially thinking that for figure 3, we would move the chromothripsis plots alongside the co-occurrence plots, then move mut sigs horizontal as the last panel below. Then, we would transition into figure 4- TP53 scores (original panels ABC), then the distribution highlighting hypermutaters. Then, either faceted below the TP53 distribution, telomerase distribution, followed by a final panel with the hazard plot.

This seems good!! I'll move the TP53 boxplots as fig 3 and update READMEs accordingly. I'm working on the other TP53 and telomerase figures before the weekend.