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

Show a gene set on FeaturePlot #3022

Closed
schelp72 opened this issue May 17, 2020 · 2 comments
Closed

Show a gene set on FeaturePlot #3022

schelp72 opened this issue May 17, 2020 · 2 comments

Comments

@schelp72
Copy link

Hope everyone is well.

I would like to display the average expression level of a set of genes (at least 5) in a FeaturePlot but the function only takes 2 genes max in its argument.

My request is similar to what is asked here:
#528
https://www.biostars.org/p/334617/

I am a beginner to R and do not know how to update this code to the newest Seurat version.

Thanks!

@Eomesodermin
Copy link

You can try generating a module score for the gene set:

Seurat.obj <- AddModuleScore(
object = Seurat.obj,
features = list(geneset.vector),
name = 'Module_score_name'
)

then plot the module score in FeaturePlot

@schelp72
Copy link
Author

Thank you this is exactly what I needed!

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