scRNA-Seq: makers explore© Karobben

scRNA-Seq: makers explore

Seurat is a popular R package for single-cell RNA sequencing (scRNA-seq) data analysis. If you’ve already processed your data and assigned cell identities (classes), then finding differentially expressed genes (DEGs) between two different classes is a common next step.

Here’s a brief step-by-step guide on how to identify DEGs between two cell types or classes using Seurat:

  1. Setup:
    First, make sure you have the Seurat library loaded.

    library(Seurat)
  2. Differential Expression:
    Use the FindMarkers function in Seurat to identify DEGs. You can specify the two groups you are interested in by setting the ident.1 and ident.2 parameters.

    For example, if you have two classes named “ClassA” and “ClassB”, you can identify DEGs between these two classes as follows:

    de_genes <- FindMarkers(object = your_seurat_object, 
    ident.1 = "ClassA",
    ident.2 = "ClassB",
    min.pct = 0.25,
    logfc.threshold = 0.25,
    group.by = "Final_id")
     |++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=29s  
    
    • your_seurat_object is your Seurat object.
    • min.pct is the minimum percentage of cells where the gene must be detected in either of the two groups.
    • logfc.threshold is the minimum log-fold change threshold.
    • group.by is the colname from metadata
  3. Inspect Results:
    The resulting de_genes data frame will contain differentially expressed genes between “ClassA” and “ClassB”. It will include columns for the average expression in each class, the percentage of cells expressing the gene in each class, the log fold-change, and the adjusted p-value (among other metrics).

  4. Filter Based on Significance:
    You might want to filter out genes based on a significance threshold, for instance, an adjusted p-value less than 0.05:

    significant_genes <- de_genes[de_genes$p_val_adj < 0.05, ]
  5. Visualize:
    You can also visualize the expression of significant genes across different classes using feature plots or violin plots in Seurat.

Remember, the parameters like min.pct, logfc.threshold, and the p-value cutoff should be chosen based on your specific dataset and research questions. Adjust them as necessary to balance sensitivity and specificity.

Violin Plot

VlnPlot(OL3, 
idents = c("GMC1", "GMC2", "GMC3*"),
features = "N",
group.by = "Pred_cl")
Show apart of Cells
VlnPlot(OL3, 
idents = c("GMC1", "GMC2", "GMC3*"),
features = row.names(de_genes),
group.by = "Pred_cl")
Author

Karobben

Posted on

2023-10-04

Updated on

2024-01-11

Licensed under

Comments