{"id":84237,"date":"2026-12-06T09:33:53","date_gmt":"2026-12-06T01:33:53","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=84237"},"modified":"2026-12-06T09:33:53","modified_gmt":"2026-12-06T01:33:53","slug":"sc-convert-seurat5-h5ad-loom-barcode-alignment-guide-20261206","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/sc-convert-seurat5-h5ad-loom-barcode-alignment-guide-20261206\/","title":{"rendered":"Seurat v5 \u8f6c Scanpy \u4e22\u6807\u7b7e\u3001\u5408\u5e76 velocyto \u62a5 0 cells matched\uff1f\u7528\u514d\u8d39\u4e92\u8f6c\u6025\u6551\u53f0\u4e00\u952e\u5bf9\u9f50\u6761\u7801\u4e0e\u6570\u636e\u5c42"},"content":{"rendered":"<figure style=\"margin:0 0 24px\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/12\/blog-20261206-sc-convert-workbench-sc-convert-workbench-poster.png?ssl=1\" alt=\"\u4e91\u751f\u4fe1\u5355\u7ec6\u80de\u8de8\u683c\u5f0f\u65e0\u635f\u4e92\u8f6c\u4e0e\u6761\u7801\u5bf9\u9f50\u6025\u6551\u53f0\u4fe1\u606f\u6d77\u62a5\uff1a\u9488\u5bf9Seurat v5\u8f6cScanpy\u4e22\u56e0\u5b50\u6807\u7b7e\u3001SeuratDisk\u62a5\u9519\u4e0evelocyto loom\u5408\u5e760 cells matched\uff0c\u63d0\u4f9b\u56db\u70b9\u6838\u9a8c\u65e0\u635f\u6865\u63a5\u4ee3\u7801\u3001\u53cc\u5411\u6761\u7801\u6b63\u5219\u5bf9\u9f50\u53ca256G\u5927\u5185\u5b58\u5927\u5bf9\u8c61\u65e0\u635f\u4ee3\u8f6c\u670d\u52a1\u3002\" style=\"width:100%;max-width:860px;height:auto;border-radius:14px;display:block;margin:0 auto;border:1px solid #dbe7f8\" \/><\/figure>\n<p>\u5355\u7ec6\u80de\u8bfe\u9898\u505a\u5230\u4e2d\u540e\u6bb5\uff0c\u51e0\u4e4e\u90fd\u8981\u5728 R \u548c Python \u4e4b\u95f4\u6765\u56de\u5207\u6362\uff1a\u524d\u671f\u5728 R \u91cc\u7528 <code>Seurat v5<\/code> \u548c <code>Harmony<\/code> \u505a\u597d\u4e86\u8d28\u63a7\u3001\u5206\u7fa4\u4e0e\u7cbe\u7ec6\u7ec6\u80de\u6ce8\u91ca\uff0c\u63a5\u4e0b\u6765\u60f3\u53bb Python \u8dd1 <code>scVelo \/ CellRank<\/code> \u901f\u7387\u8f68\u8ff9\uff0c\u6216\u8005\u7528 <code>scVI-tools \/ CellTypist<\/code> \u505a\u53c2\u8003\u6620\u5c04\uff1b\u7b49\u7b97\u5b8c\u9690\u7a7a\u95f4\u6216\u901f\u7387\uff0c\u53c8\u60f3\u5bfc\u56de R \u8dd1 <code>CellChat v2<\/code> \u914d\u53d7\u4f53\u901a\u8baf\u5e76\u7edf\u4e00\u53d1\u8868\u7ea7\u56fe\u8868\u914d\u8272\u3002<\/p>\n<p>\u4f46\u4e00\u52a8\u624b\u8f6c\u683c\u5f0f\uff0c\u5341\u6709\u516b\u4e5d\u4f1a\u649e\u4e0a\u8fd9\u56db\u4e2a\u5751\uff1a\u7167\u7740\u65e7\u6559\u7a0b\u88c5 <code>SeuratDisk<\/code> \u76f4\u63a5\u5361\u6b7b\u5728 HDF5 \u7248\u672c\u62a5\u9519\uff1b\u597d\u4e0d\u5bb9\u6613\u5bfc\u51fa <code>.h5ad<\/code> \u8bfb\u8fdb Scanpy\uff0c\u53d1\u73b0\u8f9b\u8f9b\u82e6\u82e6\u547d\u540d\u7684\u7ec6\u80de\u4e9a\u7fa4\u5168\u53d8\u6210\u4e86 <code>0, 1, 2<\/code> \u6574\u6570\u7f16\u7801\uff0c\u539f\u672c\u8c03\u597d\u7684 UMAP \u5f62\u72b6\u4e5f\u4e22\u4e86\uff1b\u66f4\u5d29\u6e83\u7684\u662f\u628a <code>velocyto<\/code> \u8dd1\u51fa\u6765\u7684 <code>.loom<\/code> \u5f80\u91cc\u4e00\u5408\uff0c\u76f4\u63a5\u62a5\u9519 <code>0 cells matched<\/code>\u3002<\/p>\n<p>\u9488\u5bf9\u8fd9\u4e00\u9ad8\u9891\u5361\u58f3\u73af\u8282\uff0c\u4e91\u751f\u4fe1\u5728\u7ebf\u5de5\u5177\u4e2d\u5fc3\u65b0\u4e0a\u7ebf\u4e86 <strong><a data-ysx-event=\"tool_open\" data-ysx-source=\"blog-scconvert-20261206\" href=\"https:\/\/www.biocloudservice.com\/sc-convert\/\">\u5355\u7ec6\u80de\u8de8\u683c\u5f0f\u65e0\u635f\u4e92\u8f6c\u4e0e\u6761\u7801\u5bf9\u9f50\u6025\u6551\u53f0<\/a><\/strong>\uff0c\u4e0e\u521a\u4e0a\u7ebf\u7684 <a href=\"https:\/\/www.biocloudservice.com\/bigmem\/\">\u7206\u5185\u5b58\u4e0e GEO \u4ee3\u8dd1\u53f0<\/a>\u3001<a href=\"https:\/\/www.biocloudservice.com\/env-doctor\/\">\u88c5\u5305\u51b2\u7a81\u8bca\u65ad\u53f0<\/a> \u5171\u540c\u7ec4\u6210<strong>\u300c\u751f\u4fe1\u4e09\u5927\u5d29\u6e83\u6025\u6551\u5165\u53e3\u300d<\/strong>\u3002\u6253\u5f00\u7f51\u9875\u5373\u53ef\u514d\u767b\u5f55\u751f\u6210\u7ed5\u5f00 <code>SeuratDisk<\/code> \u7684\u65e0\u635f\u6865\u63a5\u811a\u672c\uff0c\u6216\u7c98\u8d34\u4e24\u4fa7\u7ec6\u80de\u6761\u7801\u81ea\u52a8\u751f\u6210\u53cc\u5411\u6e05\u6d17\u6b63\u5219\u3002<\/p>\n<hr \/>\n<h2>\u4e00\u3001\u4e3a\u4ec0\u4e48\u7167\u642c\u7f51\u4e0a\u7684 <code>SaveH5Seurat<\/code> \u65e7\u4ee3\u7801\u51e0\u4e4e\u5fc5\u5d29\uff1f<\/h2>\n<h3>1. <code>Seurat v5<\/code> \u7684 <code>Assay5<\/code> \u5206\u5c42\u673a\u5236\u6539\u53d8\u4e86\u5e95\u5c42\u53d6\u6570\u63a5\u53e3<\/h3>\n<p>\u5728 <code>Seurat v3\/v4<\/code> \u65f6\u4ee3\uff0c\u8ba1\u6570\u77e9\u9635\u56fa\u5b9a\u5b58\u653e\u5728 <code>@counts<\/code> \u69fd\u4f4d\uff1b\u800c <code>Seurat v5<\/code> \u9ed8\u8ba4\u542f\u7528 <code>Assay5<\/code>\uff0c\u591a\u6837\u672c\u5408\u5e76\u540e\u8ba1\u6570\u88ab\u62c6\u6210 <code>counts.1<\/code>\u3001<code>counts.2<\/code> \u7b49\u72ec\u7acb Layer\uff0c\u76f4\u63a5\u8fd0\u884c\u5e74\u4e45\u5931\u4fee\u7684 <code>SeuratDisk::SaveH5Seurat()<\/code> \u4e0d\u4ec5\u65e0\u6cd5\u8bc6\u522b\u591a\u5c42\u7ed3\u6784\uff0c\u8fd8\u7ecf\u5e38\u56e0\u7cfb\u7edf <code>libhdf5<\/code> \u7248\u672c\u5dee\u5f02\u5bfc\u81f4\u6587\u4ef6\u635f\u574f\u3002<\/p>\n<p>\u6700\u7a33\u59a5\u7684\u505a\u6cd5\u662f\u4e0d\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9 HDF5 \u5c01\u88c5\u5305\uff0c\u5148\u7528 <code>JoinLayers()<\/code> \u5408\u5e76\u5206\u5c42\uff0c\u518d\u901a\u8fc7 R \u5185\u7f6e\u7684 <code>Matrix::writeMM()<\/code> \u5bfc\u51fa\u7a00\u758f\u4e09\u5143\u7ec4\uff08<code>counts.mtx<\/code> + <code>genes.tsv<\/code> + <code>barcodes.tsv<\/code>\uff09\uff0c\u540c\u65f6\u5c06 <code>meta.data<\/code> \u4e2d\u7684 <code>factor<\/code> \u663e\u5f0f\u8f6c\u4e3a\u5b57\u7b26\u4e32\uff08<code>as.character<\/code>\uff09\u5e76\u5355\u72ec\u5199\u51fa <code>Embeddings(obj, \"umap\")<\/code>\uff1a<\/p>\n<pre><code class=\"language-r\">library(Seurat)\r\nlibrary(Matrix)\r\n\r\n# 1. \u5408\u5e76 Seurat v5 \u5206\u6837\u672c Layer \u5e76\u63d0\u53d6\u539f\u59cb\u975e\u8d1f\u6574\u6570 Counts\r\nsc_obj[[&quot;RNA&quot;]] &lt;- SeuratObject::JoinLayers(sc_obj[[&quot;RNA&quot;]])\r\ncounts_mat &lt;- SeuratObject::LayerData(sc_obj, assay = &quot;RNA&quot;, layer = &quot;counts&quot;)\r\n\r\ndir.create(&quot;bridge_out&quot;, showWarnings = FALSE)\r\nMatrix::writeMM(counts_mat, &quot;bridge_out\/counts.mtx&quot;)\r\nwriteLines(rownames(counts_mat), &quot;bridge_out\/genes.tsv&quot;)\r\nwriteLines(colnames(counts_mat), &quot;bridge_out\/barcodes.tsv&quot;)\r\n\r\n# 2. \u56e0\u5b50\u663e\u5f0f\u8f6c\u5b57\u7b26\uff0c\u9632\u6b62\u8fdb Python \u53d8\u6210 0\/1\/2 \u6574\u6570\u7f16\u53f7\uff1b\u539f\u6837\u5bfc\u51fa UMAP\r\nmeta &lt;- sc_obj@meta.data\r\nmeta[] &lt;- lapply(meta, function(x) if (is.factor(x)) as.character(x) else x)\r\nwrite.csv(cbind(barcode = rownames(meta), meta), &quot;bridge_out\/metadata.csv&quot;, row.names = FALSE)\r\nwrite.csv(Embeddings(sc_obj, &quot;umap&quot;), &quot;bridge_out\/umap.csv&quot;)\r\n<\/code><\/pre>\n<h3>2. \u4e0b\u6e38\u8f6f\u4ef6\u5bf9\u300c\u8ba1\u6570\u5c42\u8bed\u4e49\u300d\u7684\u8981\u6c42\u622a\u7136\u4e0d\u540c<\/h3>\n<p>\u5f88\u591a\u201c\u8f6c\u6362\u6210\u529f\u4f46\u7ed3\u679c\u79bb\u5947\u201d\u7684\u4e8b\u6545\uff0c\u662f\u56e0\u4e3a\u4f20\u9519\u4e86\u77e9\u9635\u5c42\uff1a<\/p>\n<ul>\n<li><strong><code>scVI-tools<\/code> \/ <code>scANVI<\/code> \/ <code>monocle3<\/code> \/ <code>inferCNV<\/code><\/strong>\uff1a\u7edf\u8ba1\u6a21\u578b\u5efa\u7acb\u5728\u8d1f\u4e8c\u9879\u6216\u6cca\u677e\u8ba1\u6570\u5047\u8bbe\u4e4b\u4e0a\uff0c<strong>\u5fc5\u987b\u4f20\u5165\u672a\u7ecf\u5bf9\u6570\u8f6c\u6362\u7684\u975e\u8d1f\u6574\u6570\u539f\u59cb Counts<\/strong>\uff08\u5728 AnnData \u4e2d\u901a\u5e38\u5b58\u5165 <code>adata.layers[\"counts\"]<\/code>\uff09\uff1b\u8bef\u4f20 <code>NormalizeData<\/code> \u540e\u7684\u5c0f\u6570\u4f1a\u76f4\u63a5\u62a5\u9519\u6216\u4ee4\u7ed3\u679c\u5931\u771f\u3002<\/li>\n<li><strong><code>CellChat v2<\/code> \/ <code>CellTypist<\/code><\/strong>\uff1a\u8981\u6c42\u4f20\u5165\u5bf9\u6570\u6807\u51c6\u5316\u540e\u7684\u6b63\u6570\u8868\u8fbe\u77e9\u9635\uff08\u7edd\u5bf9\u4e0d\u80fd\u8bef\u4f20\u5305\u542b\u8d1f\u6570\u7684 <code>scale.data<\/code>\uff09\u3002<\/li>\n<\/ul>\n<h3>3. <code>velocyto<\/code> \u7684 <code>.loom<\/code> \u6761\u7801\u524d\u540e\u7f00\u9519\u4f4d<\/h3>\n<p>10x CellRanger \u8f93\u51fa\u5e76\u5728 Seurat \u591a\u6837\u672c\u5408\u5e76\u540e\u7684\u7ec6\u80de\u6761\u7801\u901a\u5e38\u5f62\u5982 <code>HCC01_AAACCTGAGAAACCAT-1<\/code>\uff0c\u800c <code>velocyto<\/code> \u9ed8\u8ba4\u6839\u636e BAM \u6587\u4ef6\u540d\u751f\u6210\u7684 <code>.loom<\/code> \u6761\u7801\u5f80\u5f80\u5f62\u5982 <code>HCC01_possorted_genome_bam_8K2A1:AAACCTGAGAAACCATx<\/code>\u3002\u4e24\u4fa7\u4e00\u4e2a\u7528\u4e0b\u5212\u7ebf\u52a0 <code>-1<\/code>\uff0c\u4e00\u4e2a\u5e26\u968f\u673a\u540e\u7f00\u52a0\u5192\u53f7\u548c\u672b\u5c3e <code>x<\/code>\uff0c\u76f4\u63a5\u8c03 <code>scv.utils.merge(adata, ldata)<\/code> \u65f6\u5b57\u7b26\u4e32\u4ea4\u96c6\u81ea\u7136\u662f <code>0<\/code>\u3002<\/p>\n<hr \/>\n<h2>\u4e8c\u3001\u5e38\u89c1\u5355\u7ec6\u80de\u8de8\u683c\u5f0f\u76ee\u6807\u4e0e\u56db\u70b9\u6838\u9a8c\u5bf9\u7167\u8868<\/h2>\n<p>\u5728\u52a8\u624b\u8f6c\u6362\u524d\uff0c\u53ef\u6309\u4e0b\u8868\u6838\u5bf9\u76ee\u6807\u8f6f\u4ef6\u7684\u8f93\u5165\u5951\u7ea6\u4e0e\u907f\u5751\u8981\u70b9\uff1a<\/p>\n<div style=\"overflow-x:auto;margin:18px 0\">\n<table style=\"width:100%;border-collapse:collapse;min-width:640px\">\n<thead>\n<tr>\n<th style=\"text-align: left;\">\u8f6c\u6362\u65b9\u5411\u4e0e\u4e0b\u6e38\u76ee\u6807<\/th>\n<th style=\"text-align: left;\">\u5fc5\u9700\u4fdd\u7559\u7684\u77e9\u9635\u5c42<\/th>\n<th style=\"text-align: left;\">\u5143\u6570\u636e\u4e0e\u964d\u7ef4\u6838\u9a8c\u91cd\u70b9<\/th>\n<th style=\"text-align: left;\">\u9ad8\u9891\u7ffb\u8f66\u62a5\u9519<\/th>\n<th style=\"text-align: left;\">\u63a8\u8350\u7a33\u5065\u6865\u63a5\u65b9\u5f0f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: left;\"><strong><code>Seurat v5<\/code> \u2192 <code>scVelo \/ CellRank<\/code><\/strong><\/td>\n<td style=\"text-align: left;\">\u539f\u59cb Counts + <code>.loom<\/code> \u4e2d\u7684 <code>spliced \/ unspliced<\/code><\/td>\n<td style=\"text-align: left;\">\u5fc5\u987b\u5199\u5165 <code>obsm['X_umap']<\/code>\uff0c\u4e14\u6e05\u6d17\u4e24\u4fa7\u6761\u7801\u524d\u540e\u7f00\u81f3 <code>100%<\/code> \u683c\u5f0f\u4e00\u81f4<\/td>\n<td style=\"text-align: left;\"><code>0 cells matched<\/code>\uff1b\u753b\u51fa\u7684\u901f\u7387\u7bad\u5934\u4e0e\u539f UMAP \u5206\u7fa4\u5bf9\u4e0d\u4e0a<\/td>\n<td style=\"text-align: left;\">R \u5bfc\u51fa <code>MTX + UMAP<\/code> \u2192 Python \u6b63\u5219\u5bf9\u9f50 <code>.loom<\/code> \u540e\u5408\u5e76<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><code>Seurat<\/code> \u2192 <code>scVI \/ CellTypist<\/code><\/strong><\/td>\n<td style=\"text-align: left;\"><code>layers['counts']<\/code> \u5b58\u975e\u8d1f\u6574\u6570\uff1b<code>X<\/code> \u5b58 <code>log1p(1e4)<\/code><\/td>\n<td style=\"text-align: left;\"><code>obs<\/code> \u4fdd\u7559\u660e\u786e\u7684 <code>sample_id<\/code> \u6279\u6b21\u5217\uff0c\u6240\u6709 <code>factor<\/code> \u8f6c\u5b57\u7b26\u4e32<\/td>\n<td style=\"text-align: left;\"><code>ValueError: Expected integer counts<\/code>\uff1b\u4e9a\u7fa4\u540d\u53d8\u6570\u5b57<\/td>\n<td style=\"text-align: left;\">\u5bfc\u51fa\u524d\u65ad\u8a00 <code>all(counts@x == floor(counts@x))<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong><code>Scanpy .h5ad<\/code> \u2192 <code>R CellChat v2<\/code><\/strong><\/td>\n<td style=\"text-align: left;\">\u5bf9\u6570\u6807\u51c6\u5316\u6b63\u6570\u77e9\u9635\uff08\u5199\u5165 Seurat <code>data<\/code> \u5c42\uff09<\/td>\n<td style=\"text-align: left;\">\u7eaf\u6570\u5b57\u7fa4\u540d\uff08\u5982 <code>\"0\"<\/code>, <code>\"1\"<\/code>\uff09\u987b\u6539\u540d\u52a0\u524d\u7f00\uff08\u5982 <code>\"C0\"<\/code>, <code>\"C1\"<\/code>\uff09<\/td>\n<td style=\"text-align: left;\"><code>ReadH5AD<\/code> \u5d29\u6e83\uff1bCellChat \u62a5\u7fa4\u540d\u7d22\u5f15\u4e3a 0 \u9519\u8bef<\/td>\n<td style=\"text-align: left;\">Python <code>mmwrite(mat.T)<\/code> \u62c6\u51fa \u2192 R <code>readMM<\/code> \u7ec4\u88c5<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: left;\"><strong>\u5355\u7ec6\u80de\u5bf9\u8c61 \u2192 <code>pySCENIC .loom<\/code><\/strong><\/td>\n<td style=\"text-align: left;\">\u9884\u8fc7\u6ee4\u4f4e\u8868\u8fbe\u57fa\u56e0\u540e\u7684\u539f\u59cb\u6574\u6570 Counts<\/td>\n<td style=\"text-align: left;\">\u5254\u9664 <code>&lt;1%<\/code> \u7ec6\u80de\u68c0\u51fa\u7684\u6781\u7a00\u758f\u57fa\u56e0\uff0c\u884c\u540d\u5bf9\u9f50 <code>cisTarget<\/code> \u7fbd\u6bdb\u5e93<\/td>\n<td style=\"text-align: left;\">R <code>SCopeLoomR<\/code> \u7206\u5185\u5b58\uff1b\u4e0d\u8fc7\u6ee4\u57fa\u56e0\u5bfc\u81f4 <code>GRNBoost2<\/code> \u8dd1\u6570\u5929<\/td>\n<td style=\"text-align: left;\">\u8f6c\u5165 Python \u7528 <code>loompy.create()<\/code> \u6d41\u5f0f\u751f\u6210 <code>.loom<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<hr \/>\n<h2>\u4e09\u3001\u4e24\u6b65\u7528\u597d\u300c\u8de8\u683c\u5f0f\u65e0\u635f\u4e92\u8f6c\u4e0e\u6761\u7801\u5bf9\u9f50\u6025\u6551\u53f0\u300d<\/h2>\n<p>\u6253\u5f00 <strong><a data-ysx-event=\"tool_open\" data-ysx-source=\"blog-scconvert-20261206\" href=\"https:\/\/www.biocloudservice.com\/sc-convert\/\">https:\/\/www.biocloudservice.com\/sc-convert\/<\/a><\/strong> \u540e\uff0c\u53ef\u76f4\u63a5\u6309\u573a\u666f\u9009\u7528\u4e24\u4e2a\u6a21\u5757\uff1a<\/p>\n<ol>\n<li><strong>\u6a21\u5f0f\u4e00\uff1a\u6309\u4e0b\u6e38\u76ee\u6807\u4e00\u952e\u751f\u6210 R \u2194 Python \u914d\u5bf9\u6865\u63a5\u4ee3\u7801<\/strong><br \/>\n   \u9009\u62e9\u4f60\u7684\u6e90\u683c\u5f0f\u4e0e\u4e0b\u6e38\u76ee\u6807\u8f6f\u4ef6\uff08<code>scVelo<\/code>\u3001<code>scVI\/CellTypist<\/code>\u3001<code>CellChat v2<\/code> \u6216 <code>pySCENIC<\/code>\uff09\uff0c\u9875\u9762\u5de6\u4fa7\u4f1a\u751f\u6210<strong>\u56db\u70b9\u65e0\u635f\u8f6c\u6362\u5ba1\u8ba1\u6e05\u5355<\/strong>\uff0c\u53f3\u4fa7\u76f4\u63a5\u7ed9\u51fa\u914d\u5957\u7684 R \u5bfc\u51fa\u4e0e Python \u7ec4\u88c5\u811a\u672c\uff08\u9875\u9762\u540c\u65f6\u63d0\u4f9b <a href=\"https:\/\/www.biocloudservice.com\/sc-convert\/examples\/01_seurat5_to_h5ad_lossless_export.R\">Seurat\u2192Scanpy \u65e0\u635f\u5bfc\u51fa\u51fd\u6570 <code>.R<\/code><\/a>\u3001<a href=\"https:\/\/www.biocloudservice.com\/sc-convert\/examples\/02_scanpy_import_and_velocyto_loom_merge.py\">Scanpy \u7ec4\u88c5\u4e0e Loom \u5408\u5e76\u811a\u672c <code>.py<\/code><\/a> \u53ca <a href=\"https:\/\/www.biocloudservice.com\/sc-convert\/examples\/03_h5ad_to_seurat_clean_bridge.R\">H5AD \u9006\u5411\u56de\u8bfb Seurat \u811a\u672c <code>.R<\/code><\/a> \u514d\u8d39\u76f4\u63a5\u4e0b\u8f7d\uff09\u3002<\/li>\n<li><strong>\u6a21\u5f0f\u4e8c\uff1a\u7c98\u8d34\u4e24\u4fa7\u6761\u7801\u6837\u4f8b\uff0c\u79d2\u63a8\u5bf9\u9f50\u6b63\u5219\u5e76\u6a21\u62df\u4ea4\u96c6<\/strong><br \/>\n   \u628a Seurat \u7684 <code>head(colnames(obj))<\/code> \u7c98\u8d34\u5230\u5de6\u4fa7\uff0c\u628a <code>.loom<\/code> \u7684 <code>ldata.obs_names[:5]<\/code> \u7c98\u8d34\u5230\u53f3\u4fa7\uff0c\u70b9\u51fb\u6d4b\u8bd5\u540e\u5de5\u5177\u4f1a\u81ea\u52a8\u63d0\u53d6 10x \u6838\u5fc3\u78b1\u57fa\u5e8f\u5217\u4e0e\u6837\u672c\u524d\u7f00\u3001\u9a8c\u8bc1\u4ea4\u96c6\u5339\u914d\u7387\uff0c\u5e76\u751f\u6210\u53ef\u76f4\u63a5\u590d\u5236\u8fdb Python \u7684 <code>clean_bc()<\/code> \u5bf9\u9f50\u5408\u5e76\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<hr \/>\n<h2>\u56db\u3001\u9047\u5230\u8d85\u5927 <code>.rds \/ .h5ad<\/code> \u672c\u5730\u8f6c\u4e0d\u52a8\u600e\u4e48\u529e\uff1f<\/h2>\n<p>\u5f53\u5355\u7ec6\u80de\u961f\u5217\u8d85\u8fc7 10 \u4e07\u201320 \u4e07\u7ec6\u80de\uff08\u6216\u6587\u4ef6\u4f53\u79ef\u8fbe 5\u201320 GB\uff09\u65f6\uff0c\u4e2a\u4eba\u7535\u8111\u5728 <code>writeMM<\/code> \/ <code>readMM<\/code> \u4e2d\u8f6c\u9636\u6bb5\u5e38\u4f1a\u9047\u5230\u7269\u7406\u5185\u5b58\u6ea2\u51fa\uff0c\u751a\u81f3\u89e6\u53d1 R <code>dgCMatrix<\/code> 32 \u4f4d\u975e\u96f6\u5143\u7d20\u4e0a\u9650\u62a5\u9519\uff08<code>Cholmod error 'problem too large'<\/code>\uff0c\u975e\u96f6\u5143\u8d85\u8fc7 $2^{31}-1$\uff09\u3002\u5982\u679c\u672c\u5730\u5361\u5728\u8fd9\u4e00\u6b65\uff0c\u53ef\u6309\u9700\u9009\u62e9\u4e09\u79cd\u8854\u63a5\u65b9\u6848\uff1a<\/p>\n<ul>\n<li><strong>\u8d85\u5927\u5bf9\u8c61\u65e0\u635f\u4ee3\u8f6c + \u4e0b\u6e38\u5355\u6b65\u4ee3\u8dd1<\/strong>\uff1a\u65e0\u9700\u5728\u672c\u5730\u53cd\u590d\u6298\u817e\u73af\u5883\uff0c\u76f4\u63a5\u53d1\u7f51\u76d8\u94fe\u63a5\uff0c\u7531\u4e91\u751f\u4fe1 256G\/512G \u5927\u5185\u5b58\u8282\u70b9\u5b8c\u6210\u56db\u70b9\u4e00\u81f4\u6027\u6838\u9a8c\u8f6c\u6362\uff0c\u4e5f\u53ef\u987a\u5e26\u8dd1\u5b8c <code>scVelo \/ CellRank \/ scVI \/ pySCENIC \/ CellChat<\/code>\uff0c\u540c\u6b65\u4ea4\u4ed8\u51e0 MB \u8f7b\u91cf\u753b\u56fe\u7626\u8eab\u5305\u4e0e\u590d\u73b0\u4ee3\u7801\uff08\u5168\u91cf\u7ed3\u679c\u514d\u8d39\u4e91\u7aef\u7f13\u5b58 7 \u5929\uff09\uff1b<\/li>\n<li><strong>\u9884\u88c5 R + Python \u53cc\u73af\u5883\u7684\u4e91\u751f\u4fe1\u670d\u52a1\u5668<\/strong>\uff1a\u540c\u4e00\u53f0\u673a\u5668\u5df2\u9694\u79bb\u914d\u597d R 4.3\/4.4 \u4e0e Python \u5355\u7ec6\u80de\u73af\u5883\uff0c\u6570\u5341 GB \u4e2d\u95f4\u6587\u4ef6\u540c\u76d8\u76f4\u8bfb\u65e0\u9700\u6765\u56de\u4e0a\u4f20\u4e0b\u8f7d\u2014\u2014\u5165\u95e8\u5171\u4eab\u5e74\u4ed8\u7279\u60e0 <strong>\u00a5999\/\u5e74<\/strong>\uff0c\u5e38\u7528 256G \u5171\u4eab <strong>\u00a5459\/\u6708<\/strong>\uff0c512G \u4e3b\u529b\u5355\u7ec6\u80de <strong>\u00a5799\/\u6708<\/strong>\uff0c\u72ec\u4eab <strong>\u00a52699\/\u6708<\/strong> \u8d77\uff1b\u4e14\u65e0\u8bba\u9009\u5927\u5bf9\u8c61\u4ee3\u8f6c\u8fd8\u662f\u77ed\u671f\u5e94\u6025\uff0c<strong>\u4ea4\u4ed8\u540e 7 \u5929\u5185\u5347\u7ea7\u6b63\u5f0f\u957f\u79df\u6216\u59d4\u6258\u5b8c\u6574\u5b9a\u5236\u5206\u6790\uff0c\u9996\u5355\u8d39\u7528\u5747\u53ef 100% \u539f\u4ef7\u62b5\u6263<\/strong>\uff1b<\/li>\n<li><strong>12 \u6708\u5e74\u5e95\u8bfe\u9898\u7ecf\u8d39\u62a5\u9500\u9884\u5b58\u6b21\u5361<\/strong>\uff1a\u652f\u6301\u5f00\u5177\u89c4\u8303\u7684\u6d4b\u8bd5\u5316\u9a8c\u5206\u6790 \/ \u6570\u636e\u5904\u7406 \/ \u6280\u672f\u670d\u52a1\u53d1\u7968\u4e0e\u670d\u52a1\u660e\u7ec6\uff0c1 \u5e74\u5185\u8bfe\u9898\u7ec4\u53ef\u9519\u5cf0\u9884\u7ea6\u62b5\u6263\u683c\u5f0f\u4ee3\u8f6c\u3001\u5927\u5185\u5b58\u4ee3\u8dd1\u6216\u77ed\u671f\u7b97\u529b\u3002<\/li>\n<\/ul>\n<p>\u9700\u8981\u8bc4\u4f30\u5177\u4f53\u67d0\u4e2a\u5927\u5bf9\u8c61\u7684\u8f6c\u6362\u6216\u4e0b\u6e38\u8fd0\u884c\u65b9\u6848\uff0c\u53ef\u5728 <strong><a data-ysx-event=\"tool_open\" data-ysx-source=\"blog-scconvert-20261206\" href=\"https:\/\/www.biocloudservice.com\/sc-convert\/\">\u5355\u7ec6\u80de\u8de8\u683c\u5f0f\u4e92\u8f6c\u6025\u6551\u53f0<\/a><\/strong> \u76f4\u63a5\u767b\u8bb0\uff0c\u6216\u70b9\u51fb <strong><a data-ysx-event=\"contact_click\" data-ysx-source=\"blog-scconvert-20261206\" href=\"https:\/\/work.weixin.qq.com\/kfid\/kfcb05492f29d4d6064\" target=\"_blank\" rel=\"noopener noreferrer\">\u8054\u7cfb\u4e91\u751f\u4fe1\u4f01\u4e1a\u5fae\u4fe1\u5ba2\u670d<\/a><\/strong> \u53d1\u9001\u300c\u683c\u5f0f\u4e92\u8f6c + \u6587\u4ef6\u5927\u5c0f\u4e0e\u76ee\u6807\u8f6f\u4ef6\u300d\uff0c\u5de5\u7a0b\u5e08\u4f1a\u5148\u5e2e\u4f60\u6838\u5b9e\u6700\u5feb\u5904\u7406\u8def\u5f84\u3002<\/p>\n<hr \/>\n<h3>\u53c2\u8003\u8d44\u6599\u4e0e\u5ef6\u4f38\u5de5\u5177<\/h3>\n<ol>\n<li>\u4e91\u751f\u4fe1\u5355\u7ec6\u80de\u8de8\u683c\u5f0f\u65e0\u635f\u4e92\u8f6c\u4e0e\u6761\u7801\u5bf9\u9f50\u6025\u6551\u53f0\uff1a<a data-ysx-event=\"tool_open\" data-ysx-source=\"blog-scconvert-20261206\" href=\"https:\/\/www.biocloudservice.com\/sc-convert\/\">https:\/\/www.biocloudservice.com\/sc-convert\/<\/a><\/li>\n<li>\u4e91\u751f\u4fe1\u7206\u5185\u5b58\u9884\u68c0\u4e0e GEO\/SRA \u5927\u6570\u636e\u4ee3\u8dd1\u53f0\uff1a<a href=\"https:\/\/www.biocloudservice.com\/bigmem\/\">https:\/\/www.biocloudservice.com\/bigmem\/<\/a><\/li>\n<li>\u4e91\u751f\u4fe1\u88c5\u5305\u62a5\u9519\u4e0e R\/Conda \u73af\u5883\u51b2\u7a81\u8bca\u65ad\u53f0\uff1a<a href=\"https:\/\/www.biocloudservice.com\/env-doctor\/\">https:\/\/www.biocloudservice.com\/env-doctor\/<\/a><\/li>\n<li>Bergen V, et al. <em>scVelo: RNA velocity generalized through dynamical modeling (<code>scvelo.utils.merge<\/code>)<\/em>\uff1a<a href=\"https:\/\/scvelo.readthedocs.io\/en\/stable\/scvelo.utils.merge.html\">https:\/\/scvelo.readthedocs.io\/en\/stable\/scvelo.utils.merge.html<\/a><\/li>\n<li>Gayoso A, et al. <em>A Python library for probabilistic analysis of single-cell omics data (<code>scvi-tools<\/code>)<\/em>\uff1a<a href=\"https:\/\/docs.scvi-tools.org\/\">https:\/\/docs.scvi-tools.org\/<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Seurat v5 \u8f6c Scanpy (.h5ad) \u9047\u5230 Assay5 \u69fd\u4f4d\u62a5\u9519\u3001\u4e9a\u7fa4\u540d\u79f0\u53d8\u6574\u6570\uff0c\u6216\u5408\u5e76 velocyto (.loom) \u62a5 0 cells matched\uff1f\u7528\u4e91\u751f\u4fe1\u514d\u8d39\u8de8\u683c\u5f0f\u4e92\u8f6c\u6025\u6551\u53f0\u4e00\u952e\u751f\u6210\u56db\u70b9\u6838\u9a8c\u6865\u63a5\u4ee3\u7801\u4e0e\u6761\u7801\u5bf9\u9f50\u6b63\u5219\uff0c\u8d85\u5927\u5bf9\u8c61\u652f\u6301 256G \u5927\u5185\u5b58\u65e0\u635f\u4ee3\u8f6c\u3002<\/p>\n","protected":false},"author":1,"featured_media":84236,"comment_status":"closed","ping_status":"closed","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":[51,47,71,75],"tags":[4321,240,667,115,90,4322],"class_list":["post-84237","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-r","category-single-cell","category-compute-environment","tag-h5ad","tag-scanpy","tag-scvelo","tag-seurat","tag-90","tag-4322"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/12\/blog-20261206-sc-convert-workbench-sc-convert-workbench-poster.png?fit=1200%2C1600&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/84237","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"}],"author":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/comments?post=84237"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/84237\/revisions"}],"predecessor-version":[{"id":84240,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/84237\/revisions\/84240"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/84236"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=84237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=84237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=84237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}