-
Notifications
You must be signed in to change notification settings - Fork 915
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 get report of average and percentage gene expression from a list of genes across entire dataset instead of per cluster #4497
Comments
Hi, Not member of dev team but hopefully this helps. In terms of getting the average expression I suggest taking look at Alternatively you can run a modified version of the code used to create the Lines 3462 to 3476 in 4e868fc
The modified version to perform across an entire seurat object would simply be:
I'm not sure what you mean by p-values associated with these values. p-value is based on statistical test and if you are performing these calculations across the whole dataset then you aren't comparing them to anything. Best, |
@samuel-marsh This worked! Thanks so much for your help!! |
@ksaunders73 Happy to help! |
I found code from #3521 which has allowed me to plot a list of genes onto one dotplot or featureplot, instead of having separate featureplots for each gene.
nkfocuslist <- list(c("TFF1", "MB", "ANKRD30B",
"LINC00173", "DSCAM-AS1", "IGHG1", "SERPINA5"))
sobj <- AddModuleScore(object = sobj, features = nkfocuslist, name = "NK_Focus_List")
FeaturePlot(object = sobj, features = "NK_Focus_List1")
From #1888 I found you can get the percentage and average gene expression from dotplot information. I would like to do something similar to the above where I can get the gene expression across the whole dataset instead of the expression per cluster:
a <- DotPlot(object = sobj, features = c("TFF1", "MB", "ANKRD30B",
"LINC00173", "DSCAM-AS1", "IGHG1", "SERPINA5"))
a$data
In addition, is there a way to get the p-values associated with these expression values? As well as set thresholds for either?
Hopefully this makes sense, and thanks for reading!
The text was updated successfully, but these errors were encountered: