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

Extract One Cluster Plot from degPlotCluster #46

Open
drives28 opened this issue May 10, 2021 · 3 comments
Open

Extract One Cluster Plot from degPlotCluster #46

drives28 opened this issue May 10, 2021 · 3 comments

Comments

@drives28
Copy link

Hello again,

Is there a way to only output one cluster plot if the number of the cluster is used as input? Let me know if this question doesn't make sense.

Thanks!

@lpantano
Copy link
Owner

Hi,

If you want to plot only one cluster, you can subset the data.frame containing only that cluster and then use the function. I have never tried that, let me know if that works. Or let me know if that wasn't the question :)

@drives28
Copy link
Author

I had tried subsetting cluster_rlog prior to sending it to the degPatterns function but not subsetting the degPatterns output variable prior to inputting in degPlotCluster. I'll try that and let you know if it doesn't work. Thanks for your reply.

@drives28
Copy link
Author

That did work. I output the genes for the cluster I'm interested in and then subset clusters1$normalized using the following code: group3cluster <- subset(clusters1$normalized, clusters1$normalized$genes %in% group3$genes)
then I can pass group3cluster to degPlotCluster and only output that one plot.

Thanks so much!

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