Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inability to Compactly Plot Multiple Phenotypes #89

Open
DarioS opened this issue Aug 29, 2024 · 2 comments
Open

Inability to Compactly Plot Multiple Phenotypes #89

DarioS opened this issue Aug 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@DarioS
Copy link

DarioS commented Aug 29, 2024

make_sample_lr_prod_activity_plots_Omnipath plot is very big. Also, I have three phenotypes for each sample, two conditions per phenotype. Age: Old, Young, Diesase Recurrence: No, Yes. Smoker: No, Yes. Could you provide something to combine multiple analyses? Ideally, it would be possible to plot the Scaled Ligand Activity in Receiver column between different analyses with the union of gene pairs in rows and put a single Omnipath column at the right of the plot to create a concise multi-phenotype plot. I wonder, could group_id be allowed to be a vector? Currently, it is not.

group_id: Name of the meta data column that indicates from which group/condition a cell comes from.

make_sample_lr_prod_activity_plots_Omnipath returns a class patchwork object so users don't have a list of data frames for plots to tinker with. If a list of data frame was the function's return type, users could customise the plot.

> class(result)
  "patchwork" "gg"        "ggplot"   
> str(result)
A patchwork composed of 4 patches
- Autotagging is turned off
- Guides are collected
Layout:
4 patch areas, spanning 2 columns and 2 rows
    t l b r
1:  1 1 1 1
2:  2 1 2 1
3:  1 2 1 2
4:  2 2 2 2

It would be great if multinichenetr seamlessly supported multi-phenotypes plotting.

@browaeysrobin
Copy link
Member

Hi @DarioS

The only solution in the current implementation seems to be to combine the phenotype-condition columns into one to perform a combined analysis, similar to what we demonstrate in the multifactorial vignette (https://github.com/saeyslab/multinichenetr/blob/main/vignettes/multifactorial_analysis_BreastCancer.knit.md).

We may consider adapting the plotting outputs, but this is not a priority for now.

@browaeysrobin browaeysrobin added the enhancement New feature or request label Sep 5, 2024
@DarioS
Copy link
Author

DarioS commented Sep 6, 2024

That seems a good workaround if the sample size is large. However, it is good to design a solution for small sample size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants