Hi
I have a scRNA-Seq dataset consisting of 3 groups (control, Treat1, and Treat2). I created a Seurat object for it then plot a UMAP and finally, I found 6 clusters in my dataset. I want to find differentially expressed genes in the Treat1 group compared with the Control group in just one cluster.
As far as I know FindAllMarkers()
function, finds differentially expressed genes between clusters but not between groups in one cluster. How can I find DEGs between groups in one cluster?
Thanks for any help.
Assuming that condition (Treat and control) is in the metadata of seurat object, you would need to aggregate the counts by condition and clusters (AggregateExpression function). Then extract the count object / rows that belong to cluster of interest. Then create two dataframes: one with counts and another one metadata. create a deseq2 object with counts, metadata and design (condition). Run DESeq2 analysis.
cpad0112
Thanks for your reply. I have tried to perform the Pseudobulk method but my Seurat object doesn't have any information about the cell replicate. It means that each cell has just information about the cluster and the condition (e.g. ctrl or treat) belonged to but not the individual information (for example belonging to which biological replicate) and finally the DESeq2 can't find the DEGs.
Here is the head of my
Seurart.object@meta.data
:sample
column is the condition (oil/ccl4/bdl), and thecelltype
column is the cluster each cell belongs to (e.g. HSC, EC).I would appreciate it if you could help me.