{"id":82038,"date":"2026-11-30T12:07:22","date_gmt":"2026-11-30T04:07:22","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series-3-seurat-pitfalls\/"},"modified":"2026-11-30T12:12:43","modified_gmt":"2026-11-30T04:12:43","slug":"deseq2-agent-series-3-seurat-pitfalls","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series-3-seurat-pitfalls\/","title":{"rendered":"Agent \u8dd1 Seurat \u5355\u7ec6\u80de\u5b9e\u5f55\uff1a\u4e00\u884c\u52a8\u753b\u5360\u4f4d\u7801\u5f15\u53d1\u7684\u300c\u5bf9\u8c61\u84b8\u53d1\u300d"},"content":{"rendered":"<p style=\"background:#eef7f5;padding:10px 16px;border-radius:8px;font-size:14px;\"><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series\/\" target=\"_blank\" rel=\"noopener\">\u2190 \u8fd4\u56de\u7cfb\u5217\u76ee\u5f55\uff1a\u300cAgent \u5b9e\u8dd1\u8e29\u5751\u5b9e\u5f55\u300d12 \u671f\u5168\u5217\u8868<\/a><\/p>\n<blockquote>\n<p>\u672c\u6587\u662f\u300cAgent \u5b9e\u8dd1\u8e29\u5751\u5b9e\u5f55\u300d\u7cfb\u5217\u7b2c 3 \u671f\u3002\u524d\u60c5\uff1a<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-full-run-pitfalls\/\" target=\"_blank\" rel=\"noopener\">\u7b2c 1 \u671f DESeq2<\/a>\u3001<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/deseq2-agent-series-2-enrichment-pitfalls\/\" target=\"_blank\" rel=\"noopener\">\u7b2c 2 \u671f GO\/KEGG \u5bcc\u96c6<\/a>\u3002\u524d\u4e24\u671f\u90fd\u5728 bulk \u8f6c\u5f55\u7ec4\uff0c\u8fd9\u671f\u8fdb\u5165\u5355\u7ec6\u80de\u2014\u2014\u7528 10x Genomics \u5b98\u65b9\u6559\u5b66\u6570\u636e PBMC 3k \u8dd1 Seurat \u6807\u51c6\u6d41\u7a0b\uff1aQC \u2192 \u5f52\u4e00\u5316 \u2192 \u9ad8\u53d8\u57fa\u56e0 \u2192 PCA \u2192 \u805a\u7c7b \u2192 UMAP \u2192 \u6807\u8bb0\u57fa\u56e0 \u2192 \u7ec6\u80de\u7c7b\u578b\u6ce8\u91ca\u3002<\/p>\n<\/blockquote>\n<p>><\/p>\n<blockquote>\n<p>\u5b9e\u6d4b\u73af\u5883\uff1aWindows Server \/ 32 GB \/ R 4.5.2 \/ Seurat 5.4.0 \/ PBMC 3k\uff0810x v1 chemistry\uff0c2700 \u7ec6\u80de\uff09\u3002\u5168\u7a0b 86.8 \u79d2\uff0c\u6240\u6709\u6570\u5b57\u3001\u56fe\u3001\u62a5\u9519\u771f\u5b9e\u3002<\/p>\n<\/blockquote>\n<h2>\u4e00\u3001\u6b63\u786e\u6d41\u7a0b\u4e00\u6b21\u8dd1\u901a\u7684\u90e8\u5206<\/h2>\n<p>PBMC 3k \u662f 10x \u5b98\u65b9\u6559\u5b66\u96c6\uff08\u5916\u5468\u8840\u5355\u4e2a\u6838\u7ec6\u80de\uff0c\u4f9b\u4f53\u5065\u5eb7\u4eba\uff09\u3002\u6d41\u7a0b\u4e3b\u7ebf\u6ca1\u6709\u4efb\u4f55\u60ac\u5ff5\u2014\u2014Seurat \u7684 API \u5728\u6807\u51c6\u6559\u5b66\u6570\u636e\u4e0a\u662f\u4e1d\u6ed1\u7684\uff1a<\/p>\n<pre><code class=\"language-r\">library(Seurat)\r\npbmc <- Read10X(data.dir = \"filtered_gene_bc_matrices\/hg19\/\")\r\npbmc <- CreateSeuratObject(counts = pbmc, min.cells = 3, min.features = 200)\r\n\r\n<p>pbmc[[\"percent.mt\"]] <- PercentageFeatureSet(pbmc, pattern = \"^MT-\") pbmc <- subset(pbmc, nFeature_RNA > 200 & nFeature_RNA < 2500 &#038;                      nCount_RNA < 30000 &#038; percent.mt < 5)<\/p>\r\n\r\n<p>pbmc <- NormalizeData(pbmc, normalization.method = \"LogNormalize\", scale.factor = 1e4) pbmc <- FindVariableFeatures(pbmc, selection.method = \"vst\", nfeatures = 2000) pbmc <- ScaleData(pbmc) pbmc <- RunPCA(pbmc, features = VariableFeatures(pbmc)) pbmc <- FindNeighbors(pbmc, dims = 1:10) pbmc <- FindClusters(pbmc, resolution = 0.5) pbmc <- RunUMAP(pbmc, dims = 1:10)<\/p>\r\n\r\n<p>markers <- FindAllMarkers(pbmc, only.pos = TRUE,                           min.pct = 0.25, logfc.threshold = 0.25) <\/code><\/pre>\n<\/p>\n<p>\u771f\u5b9e\u8f93\u51fa\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6307\u6807<\/th>\n<th>\u6570\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u8bfb\u5165\u7ec6\u80de \/ \u57fa\u56e0<\/td>\n<td>2700 \/ 13714<\/td>\n<\/tr>\n<tr>\n<td>QC \u540e\u7ec6\u80de<\/td>\n<td>2638<\/td>\n<\/tr>\n<tr>\n<td>PC1-5 \u65b9\u5dee\u5360\u6bd4<\/td>\n<td>20.5% \/ 8.2% \/ 6.1% \/ 5.7% \/ 4.1%<\/td>\n<\/tr>\n<tr>\n<td>Top10 \u9ad8\u53d8\u57fa\u56e0<\/td>\n<td>PPBP, LYZ, S100A9, IGLL5, GNLY, FTL, PF4, FTH1\u2026<\/td>\n<\/tr>\n<tr>\n<td>\u5206\u8fa8\u7387 0.5 \u805a\u7c7b\u6570<\/td>\n<td>9<\/td>\n<\/tr>\n<tr>\n<td>\u5168\u6d41\u7a0b\u8017\u65f6<\/td>\n<td>86.8 \u79d2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>QC \u5c0f\u63d0\u7434\u56fe\u3001UMAP\/tSNE \u5e76\u6392\u56fe\u3001\u6ce8\u91ca\u540e UMAP \u4e09\u5f20\u56fe\u5168\u90e8\u751f\u6210\uff08run-seurat\/ \u76ee\u5f55\uff09\u3002<\/p>\n<h2>\u4e8c\u3001\u5751 1\uff08\u672c MVP\uff09\uff1a\u4e00\u884c\u52a8\u753b\u5360\u4f4d\u7801\uff0c\u8ba9\u6574\u4e2a Seurat \u5bf9\u8c61\"\u84b8\u53d1\"<\/h2>\n<p>\u8fd9\u671f\u6700\u5927\u7684\u5751\u662f Agent \u81ea\u5df1\u57cb\u7684\uff0c\u800c\u4e14\u57cb\u5f97\u6beb\u65e0\u75d5\u8ff9\u3002\u811a\u672c\u7b2c 7 \u6bb5\u5199\u6807\u8bb0\u57fa\u56e0\u65f6\uff0c\u8349\u7a3f\u91cc\u7559\u4e86\u4e00\u884c\u534a\u6210\u54c1\u4ee3\u7801\uff1a<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/03_annotated_umap.png?ssl=1\" alt=\"\u6ce8\u91ca\u540e UMAP\" \/><figcaption>\u56fe 2 \u6ce8\u91ca\u540e UMAP\uff1a9 \u7fa4\u7ec6\u80de\u7c7b\u578b<\/figcaption><\/figure>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/01_qc_vln.png?ssl=1\" alt=\"QC \u5c0f\u63d0\u7434\u56fe\" \/><figcaption>\u56fe 1 QC\uff1anFeature\/nCount\/\u7ebf\u7c92\u4f53\u6bd4\u4f8b\u5206\u5e03<\/figcaption><\/figure>\n<pre><code class=\"language-r\">pbmc <- RunMarkers <- NULL    # \u2190 \u4e0a\u4e00\u7248\u8349\u7a3f\u7684\u6b8b\u9ab8\uff0c\u610f\u56fe\u662f\u5220\u6389\u7684\r\n<\/code><\/pre>\n<p>\u6267\u884c\u987a\u5e8f\u5230\u8fd9\u91cc\uff1a<code>RunMarkers<\/code> \u4e0d\u5b58\u5728 \u2192 \u521b\u5efa\u5b83\u5e76\u8d4b NULL \u2192 <strong><code>pbmc <- NULL<\/code> \u628a\u88c5\u7740 2638 \u4e2a\u7ec6\u80de\u3001\u8dd1\u4e86 80 \u79d2\u7684\u5b8c\u6574 Seurat \u5bf9\u8c61\u76f4\u63a5\u8986\u76d6\u6210 NULL<\/strong>\u3002\u4e0b\u4e00\u6b65 <code>FindAllMarkers(pbmc)<\/code> \u62a5\u9519\uff1a<\/p>\n<pre><code class=\"language-text\">Error in UseMethod(generic = \"Idents\", object = object) :\r\n  no applicable method for 'Idents' applied to an object of class \"NULL\"\r\n<\/code><\/pre>\n<p>\u9519\u8bef\u4fe1\u606f\u5176\u5b9e\u8bf4\u5f97\u5f88\u6e05\u695a\uff08\u5bf9\u8c61\u662f NULL\uff09\u2014\u2014\u4f46\u5b83\u7684\u8ff7\u60d1\u6027\u5728\u4e8e\uff1a<strong>\u524d 6 \u6bb5\u7684\u5168\u90e8\u65e5\u5fd7\u90fd\u6b63\u5e38<\/strong>\uff08QC \u6570\u5b57\u3001PCA \u65b9\u5dee\u3001\u805a\u7c7b\u6570\u90fd\u5bf9\uff09\uff0c\u770b\u5230\u62a5\u9519\u7684\u7b2c\u4e00\u53cd\u5e94\u662f\"FindAllMarkers \u7684\u53c2\u6570\u9519\u4e86\"\uff0c\u800c\u4e0d\u662f\"\u6211\u7684\u5bf9\u8c61\u65e9\u88ab\u8986\u76d6\u4e86\"\u3002<\/p>\n<p>\u8fd9\u4e2a\u5751\u7684\u666e\u9002\u4ef7\u503c\u5728\u5b83\u63ed\u793a\u7684 R \u8bed\u8a00\u7279\u6027\uff1a<strong>\u94fe\u5f0f\u8d4b\u503c <code>a <- b <- NULL<\/code> \u662f\u5408\u6cd5\u8bed\u6cd5<\/strong>\uff0c\u8349\u7a3f\u4ee3\u7801\u6e05\u7406\u4e0d\u5f7b\u5e95\u65f6\u5b83\u5c31\u662f\u9897\u5730\u96f7\u3002\u9632\u5fa1\u53ea\u6709\u4e24\u79cd\uff1a\u5199\u5b8c\u7acb\u523b\u68c0\u67e5\u811a\u672c\u91cc\u6709\u6ca1\u6709 <code><- NULL<\/code> \u6b8b\u7559\uff08grep \u4e00\u4e0b\uff09\uff1b\u6216\u8005\u7528 RStudio \u7684\u5bf9\u8c61\u6d4f\u89c8\u5668\/<code>class(pbmc)<\/code> \u65ad\u8a00\u786e\u8ba4\u5173\u952e\u5bf9\u8c61\u7c7b\u578b\u3002<strong>Agent \u7684\u6559\u8bad\u540c\u6837\u9002\u7528\u4eba\u7c7b\uff1a\u4efb\u4f55\"\u524d\u534a\u6bb5\u6b63\u5e38\u540e\u534a\u6bb5\u7a81\u7136\u5bf9\u8c61\u7c7b\u578b\u9519\"\u7684\u62a5\u9519\uff0c\u7b2c\u4e00\u5acc\u7591\u662f\u4e2d\u95f4\u6709\u8986\u76d6\u3002<\/strong><\/p>\n<h2>\u4e09\u3001\u5751 2\uff1a\u5206\u8fa8\u7387\u2014\u2014\u540c\u4e00\u4e2a\u6570\u636e\u7684\u4e09\u79cd\"\u4e16\u754c\u89c2\"<\/h2>\n<p><code>FindClusters<\/code> \u7684 resolution \u53c2\u6570\u51b3\u5b9a\u4f60\u770b\u5230\u51e0\u4e2a\u7ec6\u80de\u7fa4\u3002\u5b9e\u6d4b\u540c\u4e00\u6570\u636e\u4e09\u4e2a\u5206\u8fa8\u7387\uff1a<\/p>\n<figure><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/02_umap_vs_tsne.png?ssl=1\" alt=\"UMAP \u4e0e tSNE \u5bf9\u6bd4\" \/><figcaption>\u56fe 3 UMAP vs tSNE\uff1a\u540c\u4e00\u805a\u7c7b\u7684\u4e24\u79cd\u6295\u5f71<\/figcaption><\/figure>\n<table>\n<thead>\n<tr>\n<th>resolution<\/th>\n<th>\u805a\u7c7b\u6570<\/th>\n<th>\u4f60\u4f1a\u600e\u4e48\u8bb2\u6545\u4e8b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>0.3<\/td>\n<td><strong>7<\/strong><\/td>\n<td>\"PBMC \u6709 7 \u7fa4\u4e3b\u8981\u7ec6\u80de\"<\/td>\n<\/tr>\n<tr>\n<td>0.5<\/td>\n<td><strong>9<\/strong><\/td>\n<td>\"PBMC \u6709 9 \u7fa4\"\uff08\u672c\u6d41\u7a0b\u9ed8\u8ba4\uff09<\/td>\n<\/tr>\n<tr>\n<td>1.0<\/td>\n<td><strong>11<\/strong><\/td>\n<td>\"\u9274\u5b9a\u51fa 11 \u4e2a\u4e9a\u7fa4\uff0c\u542b\u8bb0\u5fc6 T \u7ec6\u80de\u7ec6\u5206\"<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u4e09\u4e2a\u6570\u5b57\u90fd\u5bf9\uff0c\u4e5f\u90fd\u4e0d\u5bf9<\/strong>\u2014\u2014\u5b83\u4eec\u662f\u540c\u4e00\u6570\u636e\u5728\u4e0d\u540c\"\u663e\u5fae\u955c\u500d\u6570\"\u4e0b\u7684\u50cf\u30020.5 \u7684 9 \u7fa4\u91cc CD4 T \u8fd8\u662f\u4e00\u4e2a\u6574\u4f53\uff1b\u8c03\u5230 1.0\uff0c\u5b83\u5f00\u59cb\u88c2\u6210 Naive\/Memory\uff1b\u518d\u5f80\u4e0b\u8c03\uff0c\u4f60\u4f1a\"\u53d1\u73b0\"\u66f4\u591a\u4e9a\u7fa4\u2014\u2014<strong>\u76f4\u5230\u628a\u566a\u58f0\u5f53\u4e9a\u7fa4<\/strong>\u3002<\/p>\n<p>\u5b9e\u64cd\u89c4\u5219\uff1a\u5206\u8fa8\u7387\u4e0d\u662f\"\u8c03\u5230\u7ed3\u679c\u597d\u770b\"\uff0c\u662f<strong>\u5bf9\u7740\u5df2\u77e5\u7684 PBMC \u751f\u7269\u5b66\u627e\u5408\u7406\u951a\u70b9<\/strong>\u2014\u2014\u5065\u5eb7\u4eba\u5916\u5468\u8840\u7684\u7ec6\u80de\u7c7b\u578b\u5c31\u90a3\u51e0\u79cd\uff08T\/B\/Mono\/NK\/DC\/Platelet\uff09\uff0c9 \u7fa4\u5de6\u53f3\u6070\u597d\u5339\u914d\uff1b\u5982\u679c\u4f60\u7684 3k PBMC \u8dd1\u51fa 20 \u4e2a\u7fa4\uff0c\u5148\u6000\u7591\u5206\u8fa8\u7387\u8fc7\u5934\u800c\u4e0d\u662f\"\u53d1\u73b0\u4e86\u65b0\u4e9a\u7fa4\"\u3002\u53e6\u4e00\u4fa7\u7684\u68c0\u67e5\uff1a<strong>\u6bcf\u4e2a\u7c07\u7684\u6807\u8bb0\u57fa\u56e0\u662f\u5426\u53ef\u89e3\u91ca<\/strong>\u2014\u2014\u89c1\u4e0b\u8282\uff0c9 \u7c07\u5168\u90e8\u5bf9\u5f97\u4e0a\u7ecf\u5178 marker\uff0c\u8fd9\u624d\u662f\u5206\u8fa8\u7387\u9009\u62e9\u7684\u6700\u7ec8\u5224\u636e\u3002<\/p>\n<h2>\u56db\u3001\u6807\u8bb0\u57fa\u56e0\u4e0e\u6ce8\u91ca\uff1a\u6bcf\u7c07 Top3 \u7684\"\u8ba4\u8138\"\u8fc7\u7a0b<\/h2>\n<p><code>FindAllMarkers<\/code> \u8dd1\u5b8c\uff0c9 \u4e2a\u7c07\u7684 Top3 \u6807\u8bb0\u57fa\u56e0\uff08\u771f\u5b9e\u8f93\u51fa\uff09\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7c07<\/th>\n<th>Top3 \u6807\u8bb0\u57fa\u56e0\uff08avg_log2FC\uff09<\/th>\n<th>\u6ce8\u91ca<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>0<\/td>\n<td>CCR7(2.4), LEF1(2.14), PRKCQ-AS1(1.99)<\/td>\n<td><strong>Naive CD4 T<\/strong><\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>FOLR3(7.28), S100A12(6.74), S100A8(6.65)<\/td>\n<td><strong>CD14 Mono<\/strong><\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>AQP3(2.09), CD40LG(1.87), CD2(1.63)<\/td>\n<td><strong>Memory CD4 T<\/strong><\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>LINC00926(7.38), VPREB3(7.14), CD79A(6.91)<\/td>\n<td><strong>B<\/strong><\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>GZMK(4.41), GZMH(3.74), CD8A(3.35)<\/td>\n<td><strong>CD8 T<\/strong><\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>CKB(5.88), CDKN1C(5.43), MS4A4A(5.16)<\/td>\n<td><strong>FCGR3A Mono<\/strong><\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>AKR1C3(6.22), SH2D1B(6.07), GZMB(5.98)<\/td>\n<td><strong>NK<\/strong><\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>SERPINF1(8.03), FCER1A(7.63), CLIC2(6.62)<\/td>\n<td><strong>DC<\/strong><\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>LY6G6F(14.36), RP11-879F14.2(13.93), CLDN5(13.26)<\/td>\n<td><strong>Platelet<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u91ca\u7684\u4f9d\u636e\u5168\u90e8\u662f PBMC \u6559\u79d1\u4e66\u7ea7 marker\uff1aCCR7\/LEF1 \u662f naive T \u7684\u5f52\u5de2\u53d7\u4f53\u5bf9\uff1bS100A8\/A12 \u662f\u5355\u6838\/\u4e2d\u6027\u7c92\u7684\u7ecf\u5178\u9499\u7ed3\u5408\u86cb\u767d\uff1bCD79A \u662f B \u7ec6\u80de\u53d7\u4f53\u7684\u4fe1\u53f7\u94fe\uff1bGZMK\/CD8A \u5708\u5b9a\u7ec6\u80de\u6bd2 CD8 T\uff1bFCER1A \u662f\u6811\u7a81\u7ec6\u80de\u7684 Fc\u03b5RI\uff1b\u7c07 8 \u7684\u4e09\u4e2a\"\u6ca1\u542c\u8fc7\"\u7684\u57fa\u56e0\u914d\u5957\u51fa\u73b0 + \u6781\u7aef log2FC\uff0814.4\uff01\uff09\u662f\u8840\u5c0f\u677f\u7684\u5178\u578b\u753b\u50cf\uff08PPBP\/PF4 \u5bb6\u65cf\u5728 Top HVG \u91cc\u4e5f\u51fa\u73b0\u8fc7\uff09\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a<strong>\u6559\u5b66\u4ef7\u503c\u6781\u9ad8\u7684\u7ec6\u8282<\/strong>\uff1aSeurat \u5b98\u65b9\u6559\u7a0b\u7684\u6ce8\u91ca\u8868\u662f\"0=CD4 T\u30011=CD14 Mono\u30012=B\u2026\"\u2014\u2014<strong>\u7c07\u53f7\u4e0e\u7ec6\u80de\u7c7b\u578b\u7684\u5bf9\u5e94\u5728\u6bcf\u6b21\u8fd0\u884c\u91cc\u90fd\u53ef\u80fd\u4e0d\u540c<\/strong>\uff08\u53d7\u968f\u673a\u79cd\u5b50\u548c\u7248\u672c\u5f71\u54cd\uff09\u3002\u6211\u4eec\u7684\u7c07 2 \u662f Memory CD4 T \u800c\u5b98\u65b9\u6559\u7a0b\u7684\u7c07 2 \u662f B\u3002<strong>\u6284\u6559\u7a0b\u7684\u6ce8\u91ca\u8868\u800c\u4e0d\u770b\u81ea\u5df1\u7684 marker\uff0c\u662f\u5355\u7ec6\u80de\u65b0\u624b\u7684\u5934\u53f7\u7ffb\u8f66\u70b9<\/strong>\u2014\u2014\u6ce8\u91ca\u6c38\u8fdc\u5bf9\u7740\u81ea\u5df1\u6570\u636e\u91cc\u7684 marker \u8ba4\u8138\uff0c\u6559\u7a0b\u53ea\u662f\u793a\u4f8b\u6d41\u7a0b\u3002<\/p>\n<h2>\u4e94\u3001\u672c\u671f\u8e29\u5751\u5b9e\u5f55\uff08\u5b8c\u6574\u6e05\u5355\uff09<\/h2>\n<p><strong>\u5751 1\uff1a\u94fe\u5f0f\u8d4b\u503c\u8986\u76d6\u5bf9\u8c61\uff08\u7b2c\u4e8c\u8282 MVP\uff0c\u7565\uff09\u3002<\/strong><\/p>\n<p><strong>\u5751 2\uff1aSeurat 5 \u7684 <code>print(data.frame, n=30)<\/code><\/strong>\u2014\u2014<code>n<\/code> \u53c2\u6570\u5bf9 data.frame \u7684 print \u65b9\u6cd5\u4e0d\u5408\u6cd5\uff0c\u62a5 <code>invalid 'na.print' specification<\/code>\uff08\u9519\u8bef\u4fe1\u606f\u8fd8\u633a\u8bef\u5bfc\uff09\u3002\u4fee\u6cd5\uff1a\u5faa\u73af <code>cat<\/code> \u6216\u8f6c tibble\u3002<\/p>\n<p><strong>\u5751 3\uff1adplyr \u8bed\u6cd5\u4f9d\u8d56<\/strong>\u3002\u7b2c\u4e00\u7248\u6807\u8bb0\u57fa\u56e0\u6c47\u603b\u7528\u4e86 <code>%>%<\/code> \u7ba1\u9053\u2014\u2014\u811a\u672c\u6ca1\u52a0\u8f7d dplyr \u76f4\u63a5\u62a5\u9519\u3002\u5355\u7ec6\u80de\u811a\u672c\u5efa\u8bae base R \u5199\u6cd5\uff08\u6216\u663e\u5f0f <code>library(dplyr)<\/code>\uff09\uff1a<strong>Seurat \u5bf9\u8c61\u7684\u8f93\u51fa\u5904\u7406\u7ecf\u5e38\u7528 data.frame \u64cd\u4f5c\uff0c\u7ba1\u9053\u8bed\u6cd5\"\u987a\u624b\u4e00\u5199\"\u7684\u4f9d\u8d56\u6700\u5bb9\u6613\u6f0f<\/strong>\u3002<\/p>\n<p><strong>\u5751 4\uff1a\u6ce8\u91ca\u5411\u91cf\u957f\u5ea6 vs \u7c07\u6570<\/strong>\u3002\u9884\u5199\u7684\u6ce8\u91ca\u5411\u91cf\u662f 8 \u4e2a\uff08\u6559\u7a0b\u7684 8 \u7fa4\uff09\uff0c\u5b9e\u9645\u805a\u7c7b 9 \u7fa4\uff0c<code>RenameIdents<\/code> \u62a5 <code>'names' attribute [9] must be the same length as the vector [8]<\/code>\u3002\u8fd9\u4e2a\u62a5\u9519\u53cd\u800c\u662f<strong>\u826f\u6027\u7684<\/strong>\u2014\u2014\u5b83\u5728\u6ce8\u91ca\u751f\u6548\u524d\u62e6\u4f4f\u4e86\u9519\u4f4d\uff08\u5982\u679c\u957f\u5ea6\u78b0\u5de7\u76f8\u7b49\u4f46\u987a\u5e8f\u9519\u4f4d\uff0c\u6ce8\u91ca\u5c31\u9759\u9ed8\u9519\u6807\u4e86\uff09\u3002\u9632\u5fa1\uff1a\u6ce8\u91ca\u524d\u5148 <code>length(levels(pbmc))<\/code> \u5bf9\u6570\u3002<\/p>\n<h2>\u516d\u3001\u5751\u70b9\u901f\u67e5\u8868<\/h2>\n<table>\n<thead>\n<tr>\n<th>#<\/th>\n<th>\u5751<\/th>\n<th>\u75c7\u72b6<\/th>\n<th>\u4fee\u6b63<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u94fe\u5f0f\u8d4b\u503c\u6b8b\u7801<\/td>\n<td>\u5bf9\u8c61\u53d8 NULL\uff0c\u540e\u534a\u6bb5\u5168\u5d29<\/td>\n<td>grep <code><- NULL<\/code> \u6b8b\u7559\uff1b\u5173\u952e\u8282\u70b9\u65ad\u8a00 class()<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u5206\u8fa8\u7387\u76f2\u8c03<\/td>\n<td>\u7c07\u6570\u968f res \u6f02\u79fb\uff087\/9\/11\uff09<\/td>\n<td>\u5bf9\u5df2\u77e5\u751f\u7269\u5b66\u5b9a\u951a + \u6bcf\u7c07 marker \u53ef\u89e3\u91ca<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u6284\u6559\u7a0b\u6ce8\u91ca\u8868<\/td>\n<td>\u7c07\u53f7-\u7c7b\u578b\u9519\u4f4d<\/td>\n<td>\u53ea\u8ba4\u81ea\u5df1\u6570\u636e\u7684 marker<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>print \u53c2\u6570\u975e\u6cd5<\/td>\n<td><code>na.print<\/code> \u62a5\u9519<\/td>\n<td>data.frame \u8f93\u51fa\u7528 cat \u5faa\u73af<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u6ce8\u91ca\u5411\u91cf\u957f\u5ea6<\/td>\n<td>names \u5c5e\u6027\u957f\u5ea6\u9519<\/td>\n<td>\u6ce8\u91ca\u524d length(levels()) \u5bf9\u6570<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u7ba1\u9053\u8bed\u6cd5\u7f3a\u4f9d\u8d56<\/td>\n<td><code>%>%<\/code> \u627e\u4e0d\u5230<\/td>\n<td>base R \u6216\u663e\u5f0f\u52a0\u8f7d dplyr<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e03\u3001Agent \u89c6\u89d2\u6536\u5c3e<\/h2>\n<p><strong>\"\u4e2d\u95f4\u6b63\u5e38\u3001\u5c3e\u90e8\u62a5\u9519\"\u7684\u6392\u7248\u672c\u8eab\u5c31\u662f\u7ebf\u7d22\u3002<\/strong> \u5751 1 \u7684\u94fe\u5f0f\u8d4b\u503c\u4e4b\u6240\u4ee5\u8981\u591a\u7ed5\u51e0\u8f6e\u624d\u5b9a\u4f4d\uff0c\u56e0\u4e3a\u6ce8\u610f\u529b\u88ab\u524d 6 \u6bb5\u7684\u6b63\u5e38\u65e5\u5fd7\u951a\u5b9a\u4e86\u3002\u6b64\u540e Agent \u7684\u89c4\u5219\u591a\u4e86\u4e00\u6761\uff1a<strong>\u62a5\u9519\u884c\u5f80\u524d\u627e\"\u6700\u8fd1\u4e00\u6b21\u5bf9\u62a5\u9519\u5bf9\u8c61\u7684\u8d4b\u503c\"<\/strong>\u2014\u2014\u8986\u76d6\u7c7b\u9519\u8bef\u7684\u8bc1\u636e\u6c38\u8fdc\u5728\u8d4b\u503c\u8bed\u53e5\u91cc\uff0c\u4e0d\u5728\u62a5\u9519\u4fe1\u606f\u91cc\u3002<\/p>\n<p><strong>\u6ce8\u91ca\u662f\"\u8ba4\u8138\"\u4e0d\u662f\"\u8d34\u6807\u7b7e\"\u3002<\/strong> \u672c\u671f\u7684\u6ce8\u91ca\u8868\u6bcf\u4e2a\u7c07\u90fd\u5217\u4e86 Top3 marker \u548c\u7406\u7531\u2014\u2014\u8fd9\u4e2a\u8fc7\u7a0b\u4e0d\u53ef\u5916\u5305\u7ed9\u6559\u7a0b\u3002\u5355\u7ec6\u80de\u5206\u6790\u7684\u516c\u4fe1\u529b\u5c31\u5728\u8fd9\u5c42\u624b\u5de5\u6838\u5bf9\u4e0a\uff1a\u5ba1\u7a3f\u4eba\u95ee\"\u7c07 6 \u4e3a\u4ec0\u4e48\u662f NK\"\uff0c\u4f60\u7684\u7b54\u6848\u5fc5\u987b\u662f\"GZMB\/SH2D1B + \u4e0e CD8 T \u7684 GZMK \u4e92\u65a5\"\uff0c\u800c\u4e0d\u662f\"\u6559\u7a0b\u8fd9\u4e48\u5199\u7684\"\u3002<\/p>\n<p>---<\/p>\n<p>\u5355\u7ec6\u80de\u6d41\u7a0b\u8dd1\u4e0d\u987a\u3001\u805a\u7c7b\u6570\u6f02\u79fb\u3001\u6ce8\u91ca\u62ff\u4e0d\u51c6\uff1f\u628a\u7ec6\u80de\u6570\u3001\u5206\u8fa8\u7387\u548c\u6bcf\u7c07 Top \u6807\u8bb0\u57fa\u56e0\u53d1\u7ed9\u6211\u4eec\uff0c\u4e91\u751f\u4fe1\u5e2e\u4f60\u6838\u5bf9\u6ce8\u91ca\u548c\u5206\u8fa8\u7387\u5408\u7406\u6027\u2014\u2014<strong>Seurat 5 \u5168\u6d41\u7a0b + \u5355\u7ec6\u80de\u4e13\u5c5e\u5927\u5185\u5b58\u73af\u5883\uff0c\u5728\u6211\u4eec\u7684\u670d\u52a1\u5668\u4e0a\u5f00\u673a\u5373\u7528<\/strong>\u3002<a href=\"https:\/\/work.weixin.qq.com\/kfid\/kfcb05492f29d4d6064\" target=\"_blank\" rel=\"noopener\">\u5355\u7ec6\u80de\u6d41\u7a0b\u54a8\u8be2 \/ \u670d\u52a1\u5668\u8bd5\u7528<\/a><\/p>\n<p>\u4e0d\u60f3\u81ea\u5df1\u8e29\u8fd9\u4e9b\u5751\uff1f\u628a\u6d41\u7a0b\u4ea4\u7ed9\u4e91\u751f\u4fe1 BioAgent\u3002\u5355\u7ec6\u80de\u6d41\u7a0b\u5728 BioAgent \u4e0a\u70b9\u5f00\u5373\u8dd1\uff1aSeurat 5 \u73af\u5883\u9884\u7f6e\u3001\u5185\u5b58\u81ea\u9002\u5e94\u3001\u805a\u7c7b\u5206\u8fa8\u7387\u4e0e\u6807\u8bb0\u57fa\u56e0\u81ea\u52a8\u6838\u67e5\u2014\u2014\u672c\u6587\u7684 PBMC 3k \u5168\u6d41\u7a0b\u548c 9 \u7c07\u6ce8\u91ca\u76f4\u63a5\u5728\u7ebf\u590d\u73b0\u3002 <strong><a href=\"https:\/\/www.biocloudservice.com\/bioagent\/\" target=\"_blank\" rel=\"noopener\">\u8fdb\u5165\u4e91\u751f\u4fe1 BioAgent<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u5217\u7b2c 3 \u671f\uff1aPBMC 3k \u5168\u6d41\u7a0b 86.8 \u79d2\uff0c9 \u7c07\u5168\u90e8\u6ce8\u91ca\uff08CCR7\/LEF1=Naive CD4T\u2026FCER1A=DC\uff09\u3002\u771f\u5b9e\u5751\uff1a\u94fe\u5f0f\u8d4b\u503c\u6b8b\u7801\u8ba9\u6574\u4e2a Seurat \u5bf9\u8c61\u53d8 NULL\u3001\u5206\u8fa8\u7387 7\/9\/11 \u4e09\u79cd\u4e16\u754c\u89c2\u3001\u6284\u6559\u7a0b\u6ce8\u91ca\u8868\u7684\u7c07\u53f7\u9519\u4f4d\u3002\u5168\u90e8\u6570\u5b57\u4e0e\u56fe\u6765\u81ea\u771f\u5b9e\u8fd0\u884c\u3002<\/p>\n","protected":false},"author":0,"featured_media":82037,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[72],"tags":[80,115,90,219,1529],"class_list":["post-82038","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-transcriptomics","tag-rna-seq","tag-seurat","tag-90","tag-219","tag-1529"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/poster_3-1.png?fit=1600%2C900&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/82038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/comments?post=82038"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/82038\/revisions"}],"predecessor-version":[{"id":82067,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/82038\/revisions\/82067"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/82037"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=82038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=82038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=82038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}