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

How to plot the correlation? #26

Open
levinhein opened this issue Jul 11, 2022 · 3 comments
Open

How to plot the correlation? #26

levinhein opened this issue Jul 11, 2022 · 3 comments

Comments

@levinhein
Copy link

Hello. I would like to apply your amazing tool to my current scRNA-seq research projects.

May I ask where I can find the code you used to generate Fig 1B to find the cross-cell scatter correlation from the seurat object?

image

@zhouzilu
Copy link
Owner

Hi levinhein, I have uploaded the orignal Python code for creating the above plot.

That being said, I don't think it will address your concern. May I ask what version of Seurat did you use? I can write you a small script to create such plot.

@levinhein
Copy link
Author

levinhein commented Jul 12, 2022

Hello Dr. Zhou, thank you for your kindness. I'm currently using Seurat version Seurat_4.1.1.

Oh, I use R/Rstudio. Will it also work for that?

Thank you!

@zhouzilu
Copy link
Owner

Hi levinhein,

I've actually never used Seurat 4+... Will this link be helpful? https://satijalab.org/seurat/articles/essential_commands.html

Personally, I would do it this way:

  1. Fetch the gene expression for cTPnet predicted value and your corresponding gene expression (CD8A and CD8B for cTPnet_CD8, see more example of corresponding gene in https://github.com/zhouzilu/cTPnet/blob/master/extdata/Figure1b.py)
  2. Use ggplot with geom_point (see example https://ggplot2.tidyverse.org/reference/geom_point.html)

This should give you the plot similar to Figure 1b.

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