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

seurat findmarkers() #47

Open
Flu09 opened this issue Aug 31, 2024 · 4 comments
Open

seurat findmarkers() #47

Flu09 opened this issue Aug 31, 2024 · 4 comments

Comments

@Flu09
Copy link

Flu09 commented Aug 31, 2024

hello, thank you for making this great tool. I cannot seem to understand how to use it.
I have differentially expressed genes from findmarkers() in seurat between diseased fibroblasts and control fibroblasts and MAST to account for latent variables.

The output has genes and the corresponding avg_log2fc and adj_pvalue. How to proceed because i have not found any tutorial to start from this point. I want to do Gene set enrichment or do you recommend me to prepare my data in a different way in order to be able to use this tool.

As I mentioned before I have celltype_disease and celltype_condition and looking forward to doing GSEA.

@chuiqin
Copy link
Owner

chuiqin commented Sep 3, 2024

Thank you for using this tool. irGSEA aims to comprehensively score the results of multiple gene set scoring methods to help researchers quickly identify important and interesting gene sets. Unlike traditional GSEA, irGSEA scores individual cells and does not require the calculation of avg_log2fc or adj_pvalue in advance to obtain a gene ranking list. You can try running irGSEA through this example.

# load PBMC dataset by R package SeuratData
library(Seurat)
library(SeuratData)
# download 3k PBMCs from 10X Genomics
InstallData("pbmc3k")
data("pbmc3k.final")
pbmc3k.final <- SeuratObject::UpdateSeuratObject(pbmc3k.final)

# Seurat object
pbmc3k.final <- irGSEA.score(object = pbmc3k.final, assay = "RNA",
slot = "data", msigdb = T, species = "Homo sapiens",
category = "H", geneid = "symbol",
method = c("AUCell", "UCell", "singscore", "ssgsea"), kcdf = 'Gaussian')

# Integrated analysis
result.dge <- irGSEA.integrate(object = pbmc3k.final,
group.by = "seurat_annotations", metadata = NULL, col.name = NULL,
method = c("AUCell","UCell","singscore","ssgsea"))

irGSEA.heatmap.plot1 <- irGSEA.heatmap(object = result.dge, method = "RRA", top = 50, show.geneset = NULL)

irGSEA.heatmap.plot2 <- irGSEA.heatmap(object = result.dge, method = "ssgsea", top = 50, show.geneset = NULL)

geneset.show <- result.dge$RRA %>% dplyr::filter(pvalue <= 0.05) %>% dplyr::pull(Name) %>% unique(.)
irGSEA.heatmap.plot3 <- irGSEA.heatmap(object = result.dge, method = "RRA", show.geneset = geneset.show)


@Flu09
Copy link
Author

Flu09 commented Sep 3, 2024

@chuiqin thank you. do you think it is possible to use this tool to compare disease to healthy. I have a column named maincelltype.condition and group by this column or do I subset the object to have only diseased celltypes and then run irGSEA on diseased celltypes only? Thank you.

result.dge <- irGSEA.integrate(object = PD,
group.by = "maincelltype.condition", metadata =NULL, col.name = NULL,
method = c("AUCell","UCell","singscore","ssgsea"))
geneset.show <- result.dge$RRA %>% dplyr::filter(pvalue <= 0.05) %>% dplyr::pull(Name) %>% unique(.)
irGSEA.heatmap.plot <- irGSEA.heatmap(object = result.dge, method = "RRA", show.geneset = geneset.show)

image

@XjtuZhangKun-lab
Copy link

谢谢。您认为可以使用此工具将疾病与健康进行比较吗?我有一个名为 maincelltype.condition 的列并按此列进行分组,还是将对象子集设置为仅包含患病细胞类型,然后仅对患病细胞类型运行 irGSEA?谢谢。

result.dge <- irGSEA.integrate(object = PD, group.by = “maincelltype.condition”, metadata =NULL, col.name = NULL, method = c(“AUCell”,“UCell”,“singscore”,“ssgsea”)) geneset.show <- result.dge$RRA %>% dplyr::filter(pvalue <= 0.05) %>% dplyr::p ull(名称) %>% unique(.) irGSEA.heatmap.plot <- irGSEA.heatmap(object = result.dge, method = “RRA”, show.geneset = geneset.show)

image

May I ask, has this problem been solved?

@Flu09
Copy link
Author

Flu09 commented Sep 6, 2024

No I still wait for an answer. I hope they reply soon.

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

3 participants