How to get DEG considering "clusters" and "samples" at the same time
1
0
Entering edit mode
2.1 years ago
khoon0618 • 0

Hello all,

I would like to ask for advice. I am currently analyzing scRNA-seq data from mouse lungs and have finished cluster annotation. However, I am currently struggling to obtain differentially expressed genes (DEGs). It is being analyzed using R's seurat function (seurat object).

Currently, scRNA-seq was performed on the "A" sample and the "B" sample, and as a result, a "Club" cluster and a "Goblet" cluster were obtained. I would like to compare the cellular difference between the "Club" and "Goblet" clusters in sample A with the cellular difference between the Club and Goblet clusters in sample B. A(Club vs Goblet) <> B(Club vs Goblet)

What functions can be used in this case? Thank you very much for your help!

scRNA-seq DEG • 506 views
ADD COMMENT
0
Entering edit mode
2.1 years ago
fracarb8 ★ 1.6k

You can combine the two conditions and set the Idents to it before running FindMarkers.

seuratObject@meta.data$new_condition <- paste0(seuratObject@meta.data$SampleID,"-",seuratObject@meta.data$condition)
Idents(seuratObjec) <- "new_condition"
deg_markers <- FindMarkers(seuratObjec, ident.1 = c("A-Club","A-Goblet"), ident.2 = c("B-Club","B-Goblet"))

I suggest you to define the 2 indents as vectors, so it makes easier to test all the conditions you might have.

ADD COMMENT
0
Entering edit mode

Thanks for your kind suggestion. I will try with it!

ADD REPLY

Login before adding your answer.

Traffic: 2352 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6