Tech、Food & Life

  • 首页
  • 软件下载
    • 电脑和软件
    • Mac软件
    • windows软件
  • Telegram电报
  • 网站资源推荐
  • 海外流媒体
    • netflix
    • Youtube
    • Disney+
    • HBO
  • 生活日常
    • COVID19疫情相关
    • 德国驾照和车
    • 电脑和软件
    • 花花草草
  • 烘焙
  • 关于我
  • 中EN
Tech Food & Life
爱技术,爱美食,爱生活
  1. Home
  2. English Articles
  3. Article

Single-Cell Sequencing with Seurat: Full Workflow from Raw Counts to UMAP

2026年6月12日 1点热度 0人点赞 0条评论
Language: 🇨🇳 中文版 🇬🇧 English

Single-cell RNA sequencing (scRNA-seq) is one of the fastest-growing life science technologies, and Seurat is the most popular R package for its analysis. This guide walks you through the complete workflow from raw count matrix to UMAP clustering, with clear annotations for each step—perfect for beginners.

Installation and Loading

# Requires R 4.1 or higher, Seurat v5
install.packages("Seurat")
library(Seurat)
library(ggplot2)

Reading Data

# 10x Genomics output directory should contain:
# barcodes.tsv.gz, features.tsv.gz, matrix.mtx.gz
counts <- Read10X(data.dir = "data/sample1/")

seurat <- CreateSeuratObject(
  counts      = counts,
  project     = "my_project",
  min.cells   = 3,    # gene expressed in at least 3 cells (filter noise)
  min.features = 200  # cell expresses at least 200 genes (filter empty droplets)
)

Quality Control (QC)

# Calculate mitochondrial gene percentage (high % often indicates dying/lysed cells)
seurat[["percent.mt"]] <- PercentageFeatureSet(seurat, pattern = "^MT-")
# For mouse data use "^mt-"

# Visualize QC metrics
VlnPlot(seurat, features = c("nFeature_RNA", "nCount_RNA", "percent.mt"), ncol = 3)

# Filter (thresholds depend on your data; these are examples)
seurat <- subset(seurat,
  nFeature_RNA > 200 & nFeature_RNA < 5000 & percent.mt < 20)

Normalization, Variable Features, and Scaling

seurat <- NormalizeData(seurat)  # Normalize total UMI per cell to 10,000, then log-transform

seurat <- FindVariableFeatures(seurat, nfeatures = 2000)  # Identify highly variable genes

seurat <- ScaleData(seurat)  # z-score scaling to eliminate library size differences

Dimensionality Reduction and Clustering

seurat <- RunPCA(seurat)        # PCA dimensionality reduction
ElbowPlot(seurat)               # Check elbow to decide number of PCs (usually 10-20)

seurat <- FindNeighbors(seurat, dims = 1:15)     # Build KNN graph
seurat <- FindClusters(seurat, resolution = 0.5) # Higher resolution = more clusters
seurat <- RunUMAP(seurat, dims = 1:15)           # UMAP visualization

DimPlot(seurat, label = TRUE)   # Plot UMAP, each point is a cell

Finding Marker Genes and Annotating Cell Types

# Find specifically upregulated genes for each cluster
markers <- FindAllMarkers(
  seurat,
  only.pos = TRUE,   # only upregulated genes
  min.pct  = 0.25,   # expressed in at least 25% of cells
  logfc.threshold = 0.25
)

# View top 10 markers for cluster 0
head(subset(markers, cluster == 0), 10)

# Visualize known markers (T cells, monocytes, etc.)
FeaturePlot(seurat, features = c("CD3D", "CD14", "MS4A1"))

Runtime and Memory Reference

  • 10,000 cells: ~10-15 minutes on a standard laptop, 8GB RAM sufficient
  • 50,000 cells: 32GB+ RAM recommended; ScaleData and FindClusters are bottlenecks; run on a server
  • 100,000+ cells: Consider Seurat v5 sketch workflow or switch to AnnData/Scanpy (Python)
标签: 暂无
最后更新:2026年6月12日

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

Latest Popular Random
Latest Popular Random
德国求职信(Anschreiben)怎么写:格式规范与正文结构详解 德国 Bio 有机产品值不值得买:哪些食物优先选有机,在哪里买最省 德国学生餐厅(Mensa)完全指南:价格、菜单、付款和全国特色 穷游瑞士:从德国出发 5 天 500 欧的可行路线 Notion + Obsidian 管理博士/硕士科研笔记:知识库搭建方案 在德国复刻中式早餐:豆浆、油条和葱油饼在家怎么做
ggplot2 科研配色方案:5 套可直接用的代码单细胞测序入门:Seurat 完整流程(raw counts → UMAP)全注释德国面粉 Type 405/550/1050 区别:对应中国低筋/中筋/高筋粉的换算在德国做中式面食:食材替代方案和必去亚洲超市攻略德国黄油烘焙指南:Süßrahm vs Sauerrahm、脂肪含量和温度处理德国硕士申请全流程:Uni-Assist 注册、材料提交和 NC 判断
新冠作梗,民航五个一,各种熔断,多少辛酸泪 留学生免税购车的一些坑,以及与市场价的快速价格对比表下载 无需预约的柏林免费快速新冠测试 EasyPubMed, scholarscope的免费替代,更好用的pubmed插件 中国历史朝代跨度表 欧洲华人打地铺流浪于各大机场,被称为“新吉普赛人”
Tags
下载 mac Netflix windows 在线 破解 奈飞 4k

COPYRIGHT © 2020-2025 SUNQI.ORG ALL RIGHTS RESERVED. 本站部分资源来源于网络,如有侵权请联系删除,谢谢。

Theme Kratos Made By Seaton Jiang