-
Notifications
You must be signed in to change notification settings - Fork 889
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
Plotting multiple genes in the same FeaturePlot #3521
Comments
Hi, Not member of dev team but hopefully can be helpful. I would try and see if using module scores would accomplish what you are trying to do. Best, A basic workflow would be something like:
Note that gene list for |
Thank you very much @samuel-marsh ! I think you solved my problem. Could this approach be used for larger gene signatures? What are the limitations that I should be aware of? |
HI, You definitely can use for larger gene sets but I think getting too big could be an issue for couple reasons. For one, given the sparsity of single cell data if your gene set is too large then it may not appear enriched via module score when biologically it may be. The inverse is of course also true if your gene set is too small, then the number of cells with enriched scores may be too high. If you want to know more about the method I suggest reading the original paper and methods that the function is derived from (Tirosh et al., 2016; see manual entry for more details). Best, |
@samuel-marsh Hi, I used exactly the same code as yours but found no matter how many genes I used, I got the same plot. Do you run the same issue or not? If not, can you help me with it? I also tried other lists and ran the same issues. Thanks, |
Hi Yale, Can you post the exact code that you ran for ID1 with either 50 or 3 genes? Thanks, |
Heyo @Yale73! I am a noobie so take my word with a grain of salt heh, but maybe try setting min.cutoff and max.cutoff the same between your lists and see if that helps? Like min.cutoff = 0 and max.cutoff = 0.3? I dunno how you got such pretty plots with yours though and it seems like they're the same scale so maybe not so helpful |
@samuel-marsh
50 genes
Today, when I reran the 50 one, I got an error:
Thanks, |
Hi @Yale73, Best, |
@Sergio-ote Hi, All the best, |
Has anyone encountered this error when trying this? I ran this
and got:
after trying to define object |
Did you try changing the |
Same issue as jimena2 here:
SessionInfo says Seurat_4.3.0 |
@haseebz this worked for me, thank you! |
Hi There Thank you for this solution. I would like to have different color for represent these gene sets. What I tried so far
This FeaturePlot generates 3 plots, and I am interested in the third one, which contains the two gene sets. However,it does not clear the expression difference between the gene sets plotting. I also tried to adjust the blend.threshold. Also, I noticied that when I split my FeaturePlot based on orig.ident, the control and treatment have the same expression pattern. Should I separate the data from them before performing AddModuleScore? I apppreacite so much any suggestion. Thank you! |
I was still getting the error about population size, but nothing in the thread worked. What did work was playing with the ctrl parameter.
|
Hi everyone!
I am using some small gene signatures (3-5 genes) to identify populations in my dataset using FeaturePlot(). I would like to get a plot like this one https://www.nature.com/articles/s42003-020-0922-4/figures/1 (Figure 1c), but so far I have not managed to sort it out.
I have already checked the Seurat visualization vignette, the option for 2 genes mentioned in #1343 (not suitable for more than 2 genes) and the average mean expression mentioned in #528. This last option would be fine, but I get a lot of noise in clusters that are unimportant for my signature because i.e. I get 3 very specific markers that are expressed only in my cluster of interest, but the 4th one is expressed in high levels in this specific cluster but in low levels in the rest of the clusters. When I plot I obtain a messy FeaturePlot where all the clusters look similar.
Is there a way to obtain this kind of plot using Seurat, or do I need another package? Thank you in advance!
The text was updated successfully, but these errors were encountered: