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

heatmap request/suggestion #62

Open
davhum opened this issue Jan 18, 2023 · 2 comments
Open

heatmap request/suggestion #62

davhum opened this issue Jan 18, 2023 · 2 comments

Comments

@davhum
Copy link

davhum commented Jan 18, 2023

Hi ShinyCell team,

New to ShinyCell apps - very useful so big thanks for developing this great software.

Was wondering if you would consider adding an additional heatmap feature that would plot ONE gene but where the x and y axis are taken from the meta-data inputs. This would be useful for when the user wants to see expression of a particular gene across cell types vs another feature (eg development time points, patient ID etc).

Cheers,
David

@davhum
Copy link
Author

davhum commented Feb 27, 2023

Have modified ui.R and server.R template documents that implement the function of my request. Finding it very useful and am happy to update writer.R code accordingly.

If anyone else is interested in testing this you can copy paste the following shiny cell doc into existing shinycell directory (note perhaps best to rename existing ui.R and server.R files as this hack will not preserve titles and footnotes).
ShinyCellTemplate.zip

@Rafaelsoler13
Copy link

It is very cool @davhum thanks! However, when you try to cluster the expression by any metadata x or y and one of the samples it has 0 reads for that gene, it appears this error: "NA/NaN/Inf when calling an external function (arg 10)"

Maybe it is better if you put a message saying "Unable to cluster by X or Y due to some samples have 0 counts", or having a solution.

Also I was thinking that would be a great idea to be able to plot the violin plots using 2 metadatas, like this

imagen

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

2 participants