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

Split UMAP by condition #61

Open
dhivyaa-6 opened this issue Oct 25, 2022 · 4 comments
Open

Split UMAP by condition #61

dhivyaa-6 opened this issue Oct 25, 2022 · 4 comments

Comments

@dhivyaa-6
Copy link

dhivyaa-6 commented Oct 25, 2022

Thanks for the great R package, extremely useful! Wondering if it is possible to split the UMAP by condition in the cellinfo vs geneexp tab when we use the integrated object. Is it possible to retain the UMAP under cll information as is, and then the right pane under gene expression the UMAP can be split into conditions? The current features only allow toggling to subset cells based on condition but a split view of UMAP for the gene expression pane based on condition is useful for visualization. Thanks.

@kenneditodd
Copy link

I would absolutely love this feature for violins. I find that it's the only limitation. I really want to see expression values split by group or sample.

@RodrigoGM
Copy link

This is an old post, so not sure if a solution is still required. Nonetheless, our solution was to hard code by our treatment trt column when selecting the data (ggData), and subsequently a facet_grid when creating the plots (ggOut) in the server.R file. There's a few locations on the file that need to be edited. This worked well for the UMAP scatters, and violin plot, but not so much for the proportion and heatmap plots.

e.g.

77c77,78
<                        inpConf[UI == inp1]$ID, inpConf[UI == inpsub1]$ID),  
---
>                        inpConf[UI == inp1]$ID, inpConf[UI == inpsub1]$ID,
>                        "trt"),  

79c80
<   colnames(ggData) = c("X", "Y", "val", "sub") 
---
>   colnames(ggData) = c("X", "Y", "val", "sub", "trt") 

105c105
<   ggOut = ggplot(ggData, aes(X, Y, color = val)) 
---
>   ggOut = ggplot(ggData, aes(X, Y, color = val)) + facet_grid(~ trt, scales = "free_x")

@dhivyaa-6
Copy link
Author

Thank you will try that.

@pushpinder-bu
Copy link

Did anyone found out how to split the UMAP and violin plots?

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

No branches or pull requests

4 participants