{"id":72371,"date":"2026-11-17T13:34:39","date_gmt":"2026-11-17T05:34:39","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=72371"},"modified":"2026-11-17T13:34:39","modified_gmt":"2026-11-17T05:34:39","slug":"ysx-sc-practice-092-umap-stage-audit","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-092-umap-stage-audit\/","title":{"rendered":"\u91cd\u753b\u516c\u5f00\u8bba\u6587\u7684 UMAP\uff0c\u5f62\u72b6\u4e0d\u4e00\u6837\uff0c\u8981\u4ece\u54ea\u4e00\u6b65\u5f00\u59cb\u6bd4\uff1f"},"content":{"rendered":"<div style=\"max-width:820px;margin:0 auto;color:#263a47;font-size:17px;line-height:1.85;overflow-wrap:break-word\">\n<p>\u91cd\u753b\u8bba\u6587\u91cc\u7684 UMAP\uff0c\u6709\u65f6\u53ea\u662f\u5c9b\u5c7f\u5411\u5de6\u65cb\u4e86\u4e5d\u5341\u5ea6\uff0c\u6709\u65f6\u662f\u771f\u7684\u628a\u7ec6\u80de\u653e\u5230\u4e86\u53e6\u4e00\u6279\u90bb\u5c45\u4e2d\u3002\u4e24\u79cd\u60c5\u51b5\u653e\u5728\u6295\u5f71\u5e55\u4e0a\u90fd\u50cf\u201c\u957f\u5f97\u4e0d\u4e00\u6837\u201d\uff0c\u4fee\u590d\u7684\u5730\u65b9\u5374\u76f8\u8ddd\u5f88\u8fdc\u3002\u6211\u4eec\u62ff\u51fa Scanpy \u516c\u5f00 PBMC3K \u53c2\u8003\u6d41\u7a0b\u4e2d\u4fdd\u5b58\u7684\u771f\u5b9e\u5750\u6807\uff0c\u5728\u76f8\u540c\u6761\u7801\u4e0a\u505a\u4e24\u4e2a\u5df2\u77e5\u539f\u56e0\u7684\u5bf9\u7167\u3002\u4e00\u4e2a\u53ea\u6539\u53d8\u56fe\u7eb8\u7684\u65b9\u5411\uff0c\u53e6\u4e00\u4e2a\u4ece\u5206\u6790\u7279\u5f81\u5f00\u59cb\u91cd\u7b97\u3002\u901a\u8fc7\u6761\u7801\u8868\u3001\u8868\u8fbe\u5c42\u3001\u4e3b\u6210\u5206\u3001\u90bb\u8fd1\u7ec6\u80de\u548c\u4e8c\u7ef4\u5750\u6807\uff0c\u770b\u770b\u80fd\u5426\u7cbe\u786e\u6307\u51fa\u5dee\u5f02\u7b2c\u4e00\u6b21\u51fa\u73b0\u5728\u54ea\u91cc\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1240\" height=\"800\" style=\"width:100%;height:auto;display:block;border-radius:12px\" alt=\"\u4e24\u5f20 UMAP \u5916\u5f62\u4e0d\u540c\uff0c\u5148\u67e5\u54ea\u4e00\u6b65\uff1f\uff0c\u4ece\u6761\u7801\u4e00\u8def\u5bf9\u5230\u5341\u4e94\u4e2a\u6700\u8fd1\u90bb\u3002562 \u4e2a\u5171\u540c\u6761\u7801\uff0c1,838 \u4e2a\u53c2\u8003\u7279\u5f81\uff1b\u4e24\u5f20\u56fe\u7684\u90bb\u5c45\u4ea4\u5e76\u6bd4\u4e2d\u4f4d\u6570\u4ecd\u4e3a 1\uff1b919 \u4e2a\u7279\u5f81\u91cd\u7b97\u540e\uff0cPCA \u90bb\u5c45\u4ea4\u5e76\u6bd4 0.154\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-092-umap-stage-audit.png?resize=1240%2C800&#038;ssl=1\" \/><\/p>\n<p><a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-092-umap-stage-audit.zip\">\u4e0b\u8f7d\u5b8c\u6574\u4ee3\u7801\u3001\u793a\u4f8b\u6570\u636e\u4e0e\u53c2\u8003\u8f93\u51fa\uff08ZIP\uff09<\/a> \u00b7 <a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-092-umap-stage-audit.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u5148\u786e\u8ba4\u56fe\u4e0a\u7684\u6bcf\u4e2a\u70b9\u662f\u8c01<\/h2>\n<p>\u53c2\u8003\u5bf9\u8c61\u5305\u542b\u4e24\u5343\u516d\u767e\u4e09\u5341\u516b\u9897\u5df2\u7ecf\u901a\u8fc7\u539f\u6d41\u7a0b\u8fc7\u6ee4\u7684\u7ec6\u80de\u3002\u672c\u4f8b\u6309\u4f5c\u8005\u7684\u7c97\u7c92\u5ea6\u6807\u7b7e\u5206\u5c42\uff0c\u6bcf\u7c7b\u6700\u591a\u62bd\u516b\u5341\u4e94\u9897\uff0c\u5171\u5f97\u5230\u4e94\u767e\u516d\u5341\u4e8c\u9897\u3002\u62bd\u53d6\u65f6\u540c\u65f6\u4fdd\u5b58\u539f\u5bf9\u8c61\u5df2\u7ecf\u6807\u51c6\u5316\u7684\u8868\u8fbe\u5c42\u3001\u4e3b\u6210\u5206\u3001\u4e8c\u7ef4\u5750\u6807\u3001\u6807\u7b7e\u53ca\u57fa\u56e0\u987a\u5e8f\u3002\u90a3\u4e9b\u5750\u6807\u662f\u539f\u59cb\u6d41\u7a0b\u653e\u5728\u66f4\u5927\u7ec6\u80de\u96c6\u5408\u91cc\u8bad\u7ec3\u540e\u7684\u4f4d\u7f6e\u3002\u53d6\u51fa\u5b50\u96c6\u65f6\u76f4\u63a5\u4fdd\u7559\u5b83\u4eec\uff0c\u4e0d\u4f1a\u81ea\u52a8\u751f\u6210\u4e00\u5f20\u65b0\u5e03\u5c40\u3002\u540e\u9762\u4e3a\u4e86\u53ef\u6bd4\uff0c\u5728\u5171\u540c\u6761\u7801\u5185\u90e8\u7528\u540c\u4e00\u8ddd\u79bb\u91cd\u65b0\u627e\u90bb\u5c45\u3002\u56e0\u6b64\u6211\u4eec\u7684\u90bb\u5c45\u8868\u4e0d\u662f\u516c\u5f00\u539f\u56fe\u7684\u5168\u90e8\u8fb9\uff0c\u53ea\u53cd\u6620\u8fd9\u4e2a\u660e\u786e\u5212\u5b9a\u7684\u6bd4\u8f83\u95ee\u9898\u3002<a href=\"https:\/\/scanpy.readthedocs.io\/en\/stable\/tutorials\/basics\/clustering-2017.html\">Scanpy \u7684 PBMC3K \u516c\u5f00\u53c2\u8003\u6d41\u7a0b<\/a><\/p>\n<p>\u62ff\u5230\u4e24\u5957\u7ed3\u679c\u65f6\uff0c\u7b2c\u4e00\u6b65\u4e0d\u662f\u628a\u5750\u6807\u62fc\u4e0a\u53bb\uff0c\u800c\u662f\u6838\u5bf9\u7ec6\u80de\u952e\u662f\u5426\u552f\u4e00\u3001\u4e24\u4e2a\u96c6\u5408\u5404\u6709\u591a\u5c11\u72ec\u6709\u548c\u5171\u6709\u6761\u7801\uff0c\u518d\u6309\u5171\u540c\u987a\u5e8f\u5bf9\u9f50\u3002\u4e0d\u540c\u6587\u5e93\u5e38\u6709\u76f8\u540c\u7684\u77ed\u6761\u7801\uff0c\u9879\u76ee\u7f16\u53f7\u548c\u91c7\u6837\u6807\u8bc6\u4e0d\u80fd\u4e22\u3002\u4e00\u4e2a\u4eba\u624b\u91cc\u4fdd\u5b58\u7684\u884c\u6309\u5b57\u6bcd\u6392\u5e8f\uff0c\u53e6\u4e00\u4e2a\u5bf9\u8c61\u7684\u884c\u6309\u5165\u5e93\u987a\u5e8f\u6392\u5217\uff0c\u4e24\u4efd\u5750\u6807\u957f\u5ea6\u5b8c\u5168\u4e00\u6837\u4e5f\u53ef\u80fd\u5bf9\u5e94\u9519\u4eba\u3002\u9519\u914d\u4e4b\u540e\uff0c\u6bcf\u4e00\u5217\u7684\u5206\u5e03\u3001\u805a\u7c7b\u4eba\u6570\u3001\u56fe\u5f62\u5916\u8f6e\u5ed3\u770b\u8d77\u6765\u4ecd\u7136\u6b63\u5e38\uff0c\u53ea\u6709\u4e00\u5bf9\u4e00\u6838\u67e5\u5177\u4f53\u6761\u7801\u624d\u80fd\u53d1\u73b0\u3002\u7406\u60f3\u7684\u5bf9\u7167\u6587\u4ef6\u540c\u65f6\u63d0\u4f9b\u6761\u7801\u3001\u6837\u672c\u548c\u4f5c\u8005\u7684\u539f\u6807\u7b7e\uff0c\u5141\u8bb8\u4ece\u4efb\u610f\u4e00\u4e2a\u70b9\u9000\u56de\u6e90\u6570\u636e\u3002<\/p>\n<h2>\u6784\u9020\u4e00\u4e2a\u56fe\u5f62\u6539\u53d8\u3001\u8ddd\u79bb\u5b8c\u5168\u76f8\u540c\u7684\u4f8b\u5b50<\/h2>\n<p>\u5148\u628a\u516c\u5f00\u53c2\u8003\u5750\u6807\u4e58\u4ee5\u4e00\u4e2a\u4e8c\u7ef4\u65cb\u8f6c\u77e9\u9635\uff0c\u518d\u5bf9\u6240\u6709\u70b9\u52a0\u4e0a\u540c\u4e00\u4e2a\u5e73\u79fb\u5411\u91cf\u3002\u8fd9\u4e2a\u64cd\u4f5c\u6ca1\u6709\u78b0\u8868\u8fbe\u77e9\u9635\u3001\u4e3b\u6210\u5206\u6216\u7ec6\u80de\u987a\u5e8f\u3002\u4efb\u610f\u4e00\u5bf9\u7ec6\u80de\u95f4\u7684\u6b27\u6c0f\u8ddd\u79bb\u90fd\u4fdd\u6301\u4e0d\u53d8\uff0c\u7406\u8bba\u4e0a\u4e8c\u7ef4\u6700\u8fd1\u90bb\u4e5f\u5e94\u76f8\u540c\u3002\u5bf9\u6bcf\u9897\u7ec6\u80de\u6bd4\u8f83\u6784\u56fe\u7528\u4e3b\u6210\u5206\u91cc\u7684\u5341\u4e94\u4e2a\u90bb\u5c45\uff0c\u6210\u5458\u91cd\u53e0\u7387\u7684\u4e2d\u4f4d\u6570\u4e3a\u4e00\uff1b\u5728\u4e8c\u7ef4\u7a7a\u95f4\u91cd\u590d\u8fd9\u4e2a\u68c0\u67e5\uff0c\u4e2d\u4f4d\u6570\u540c\u6837\u4e3a\u4e00\u3002\u7528\u5141\u8bb8\u5e73\u79fb\u65cb\u8f6c\u548c\u6574\u4f53\u5c3a\u5ea6\u5bf9\u9f50\u7684\u666e\u6c0f\u6bd4\u8f83\uff0c\u5269\u4f59\u5f62\u53d8\u63a5\u8fd1\u96f6\u3002\u8fd9\u6837\u5c31\u6709\u4e86\u4e00\u4e2a\u5bf9\u7167\uff0c\u8bf4\u660e\u8089\u773c\u770b\u5230\u7684\u671d\u5411\u53d8\u5316\u80fd\u5728\u6570\u503c\u4e0a\u5b8c\u5168\u89e3\u91ca\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">import numpy as np\nx = np.load(&quot;example\/reference.npz&quot;)[&quot;umap&quot;]\nrotation = np.array([[0., -1.], [1., 0.]])\nturned = x @ rotation + [4., -3.]\nprint(np.linalg.norm(x[1] - x[0]), np.linalg.norm(turned[1] - turned[0]))\n<\/code><\/pre>\n<p>\u518d\u6784\u9020\u7b2c\u4e8c\u79cd\u60c5\u51b5\u3002\u53d6\u539f\u672c\u4e00\u5343\u516b\u767e\u4e09\u5341\u516b\u4e2a\u8868\u8fbe\u7279\u5f81\u4e2d\u7684\u9694\u5217\u4e00\u534a\uff0c\u5f97\u5230\u4e5d\u767e\u4e00\u5341\u4e5d\u4e2a\u3002\u5728\u8fd9\u4e9b\u5171\u540c\u6761\u7801\u4e0a\u91cd\u65b0\u62df\u5408\u4e8c\u5341\u4e2a\u4e3b\u6210\u5206\u548c\u771f\u5b9e\u7684 UMAP\u3002\u8fd9\u4e2a\u6559\u5b66\u5904\u7406\u662f\u4e3a\u4e86\u5728\u5df2\u77e5\u4f4d\u7f6e\u5236\u9020\u5dee\u5f02\uff0c\u4e0d\u662f\u5728\u5efa\u8bae\u4ee5\u5217\u7684\u5947\u5076\u4f5c\u4e3a\u9009\u57fa\u56e0\u7b56\u7565\u3002\u4e0e\u53c2\u8003\u6bd4\u8f83\uff0c\u5dee\u5f02\u9996\u5148\u51fa\u73b0\u5728\u7279\u5f81\u5217\u8868\uff1b\u4e3b\u6210\u5206\u7684\u62df\u5408\u7ec6\u80de\u8303\u56f4\u4e5f\u968f\u4e4b\u6362\u6210\u8be5\u5b50\u96c6\uff0c\u56e0\u6b64\u4e0d\u80fd\u628a\u540e\u7eed\u7684\u5168\u90e8\u53d8\u5316\u7b80\u5355\u5f52\u7ed3\u4e3a\u201c\u5c11\u4e86\u4e00\u534a\u57fa\u56e0\u201d\u3002\u82e5\u60f3\u7814\u7a76\u7279\u5f81\u6570\u672c\u8eab\uff0c\u5e94\u8be5\u53e6\u5916\u5efa\u7acb\u5168\u7279\u5f81\u3001\u540c\u6837\u5b50\u96c6\u3001\u540c\u6837\u7b97\u6cd5\u7684\u62df\u5408\uff0c\u518d\u4e0e\u534a\u9762\u677f\u7ed3\u679c\u6210\u5bf9\u6bd4\u8f83\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">def edges(matrix,barcodes,k=15):\n    # Stable query on the same ordered barcodes, excluding the centre itself.\n    fit=NearestNeighbors(n_neighbors=k+1).fit(matrix)\n    near=fit.kneighbors(matrix,return_distance=False)\n    return [set(barcodes[j] for j in row if j!=i) for i,row in enumerate(near)]\n<\/code><\/pre>\n<h2>\u7528\u4e24\u79cd\u90bb\u5c45\u5206\u522b\u95ee\u4e24\u4e2a\u95ee\u9898<\/h2>\n<p>\u7b2c\u4e00\u79cd\u90bb\u5c45\u6765\u81ea\u6784\u56fe\u524d\u7684\u4e3b\u6210\u5206\u7a7a\u95f4\uff0c\u7528\u6765\u5224\u65ad\u5206\u6790\u4e2d\u7684\u5c40\u90e8\u5173\u7cfb\u53d8\u4e86\u591a\u5c11\u3002\u7b2c\u4e8c\u79cd\u90bb\u5c45\u76f4\u63a5\u6765\u81ea\u4e8c\u7ef4\u56fe\uff0c\u7528\u6765\u5224\u65ad\u5e03\u5c40\u4e0a\u9760\u8fd1\u7684\u7ec6\u80de\u662f\u5426\u4e00\u81f4\u3002\u4e2d\u5fc3\u7ec6\u80de\u4e0d\u8ba1\u5165\u81ea\u5df1\u7684\u90bb\u5c45\uff0c\u6210\u5458\u5339\u914d\u4f7f\u7528\u6761\u7801\u3002\u4e24\u5957\u5404\u6709\u5341\u4e94\u4e2a\u90bb\u5c45\uff0c\u5982\u679c\u5176\u4e2d\u56db\u4e2a\u76f8\u540c\uff0c\u4ea4\u96c6\u56db\u3001\u5e76\u96c6\u4e8c\u5341\u516d\uff0c\u4ea4\u5e76\u6bd4\u7ea6\u96f6\u70b9\u4e00\u4e94\u56db\u3002\u8fd9\u4e2a\u503c\u4e0d\u4f9d\u8d56\u4e8c\u7ef4\u56fe\u7684\u671d\u5411\u3002\u6309\u539f\u6807\u7b7e\u518d\u8ba1\u7b97\u90bb\u57df\u4e2d\u5c5e\u4e8e\u540c\u7c7b\u7684\u5e73\u5747\u6bd4\u4f8b\uff0c\u80fd\u5e2e\u52a9\u533a\u5206\u201c\u6362\u6389\u4e86\u540c\u8c31\u7cfb\u7684\u90bb\u5c45\u201d\u4e0e\u201c\u8de8\u8d8a\u4e86\u5df2\u6709\u7684\u5927\u7c7b\u578b\u8fb9\u754c\u201d\u3002\u6807\u7b7e\u7531\u53c2\u8003\u6d41\u7a0b\u7ed9\u51fa\uff0c\u9002\u5408\u590d\u6838\u5b8f\u89c2\u7ed3\u6784\uff0c\u540c\u65f6\u4e5f\u53ef\u80fd\u4e0e\u5efa\u56fe\u6240\u7528\u8868\u8fbe\u6709\u5173\uff0c\u4e0d\u80fd\u5f53\u72ec\u7acb\u7684\u751f\u7269\u5b66\u771f\u503c\u3002<\/p>\n<div style=\"overflow:auto\">\n<table style=\"width:100%;border-collapse:collapse\">\n<thead>\n<tr>\n<th style=\"padding:9px;text-align:left;background:#eae0ff\">\u5bf9\u7167<\/th>\n<th style=\"padding:9px;text-align:left;background:#eae0ff\">\u9996\u6b21\u51fa\u73b0\u5dee\u5f02\u7684\u4f4d\u7f6e<\/th>\n<th style=\"padding:9px;text-align:left;background:#eae0ff\">PCA \u90bb\u5c45\u4e2d\u4f4d\u4ea4\u5e76\u6bd4<\/th>\n<th style=\"padding:9px;text-align:left;background:#eae0ff\">\u540c\u6807\u7b7e\u90bb\u5c45\u6bd4\u4f8b<\/th>\n<th style=\"padding:9px;text-align:left;background:#eae0ff\">\u4e8c\u7ef4\u90bb\u5c45\u4e2d\u4f4d\u4ea4\u5e76\u6bd4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u516c\u5f00\u53c2\u8003\u5bf9\u81ea\u8eab<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u76f8\u540c<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0.887<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u4ec5\u65cb\u8f6c\u5e76\u5e73\u79fb<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u4e8c\u7ef4\u5750\u6807<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0.887<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u51cf\u534a\u7279\u5f81\u5e76\u91cd\u62df\u5408<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u7279\u5f81\u96c6\u5408<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0.154<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0.742<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0.111<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u771f\u6b63\u5e94\u5f53\u8fdb\u4e00\u6b65\u8ffd\u67e5\u7684\u662f\u7b2c\u4e09\u884c\u3002\u5373\u4f7f\u65b0\u7684\u56fe\u4f9d\u7136\u6709\u51e0\u5757\u989c\u8272\u6e05\u695a\u7684\u533a\u57df\uff0c\u4e3b\u6210\u5206\u90bb\u5c45\u548c\u539f\u53c2\u8003\u76f8\u6bd4\u5df2\u7ecf\u6362\u6389\u5f88\u591a\u3002\u53ef\u4ee5\u5728\u8fb9\u8868\u91cc\u9009\u4e00\u9897\u6807\u7b7e\u8fb9\u7f18\u7684\u7ec6\u80de\uff0c\u5217\u51fa\u4e24\u56fe\u5404\u81ea\u5341\u4e94\u4e2a\u90bb\u5c45\uff0c\u7136\u540e\u628a\u88ab\u6362\u6389\u7684\u6210\u5458\u62fc\u56de\u6807\u8bb0\u8ba1\u6570\u3002\u82e5\u8fd9\u4e9b\u53d8\u5316\u96c6\u4e2d\u5728\u7ec6\u80de\u6570\u91cf\u5c11\u3001\u8868\u8fbe\u76f8\u8fd1\u7684\u7c7b\u522b\uff0c\u8ba8\u8bba\u5e94\u5177\u4f53\u5230\u8be5\u7c7b\uff0c\u4e0d\u80fd\u628a\u67d0\u6b21\u603b\u4f53\u4ea4\u5e76\u6bd4\u89e3\u91ca\u6210\u6240\u6709\u7ec6\u80de\u7684\u590d\u73b0\u7cbe\u5ea6\u3002\u4e5f\u53ef\u6309\u4e0d\u540c\u90bb\u5c45\u6570\u91cd\u7b97\uff0c\u68c0\u67e5\u591a\u6570\u7ec6\u80de\u7684\u539f\u5927\u8c31\u7cfb\u80fd\u5426\u5728\u66f4\u5927\u5c40\u90e8\u8303\u56f4\u4e2d\u4fdd\u6301\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-sh\">python -m pip install -r requirements.txt\npython run.py --input example --out results\n# \u91cd\u65b0\u8bad\u7ec3\u964d\u7ef4\u65f6\u53e6\u88c5 umap-learn\npython fit_umap.py --input example --out example\/fit\n<\/code><\/pre>\n<h2>\u5f53\u6761\u7801\u4e0e\u8868\u8fbe\u5c42\u90fd\u5bf9\u5f97\u4e0a\uff0c\u4e0b\u4e00\u5904\u67e5\u4ec0\u4e48<\/h2>\n<p>\u5148\u6253\u5370\u7279\u5f81\u7684\u6570\u91cf\u3001\u540d\u79f0\u548c\u5b9e\u9645\u987a\u5e8f\uff0c\u518d\u6bd4\u8f83\u4e24\u5957 PCA \u4f7f\u7528\u7684\u5f52\u4e00\u3001\u4e2d\u5fc3\u5316\u3001\u7f29\u653e\u4e0e\u4e3b\u6210\u5206\u6570\u3002\u4e3b\u6210\u5206\u6574\u5217\u7ffb\u8f6c\u7b26\u53f7\u5e76\u4e0d\u4f1a\u6539\u53d8\u6b27\u6c0f\u8ddd\u79bb\uff0c\u7279\u5f81\u5411\u91cf\u7b26\u53f7\u4e0d\u540c\u4e0d\u5e94\u81ea\u52a8\u5224\u4e3a\u6570\u636e\u9519\u4e86\u3002\u82e5\u7279\u5f81\u503c\u975e\u5e38\u63a5\u8fd1\uff0c\u67d0\u4e00\u7ec4\u4e3b\u6210\u5206\u5728\u5b50\u7a7a\u95f4\u91cc\u65cb\u8f6c\u4e5f\u53ef\u80fd\u5f97\u5230\u7c7b\u4f3c\u7684\u8ddd\u79bb\u3002\u5728\u573a\u666f\u5141\u8bb8\u65f6\uff0c\u9664\u4e86\u9010\u5217\u76f8\u5173\uff0c\u8fd8\u53ef\u76f4\u63a5\u6bd4\u8f83\u5171\u540c\u6761\u7801\u4e0a\u7684\u90bb\u5c45\u5173\u7cfb\u3002\u82e5\u4e3b\u6210\u5206\u4e0e\u8fb9\u6743\u90fd\u5bf9\u9f50\uff0c\u5dee\u5f02\u624d\u9996\u6b21\u51fa\u73b0\u5728\u4e8c\u7ef4\u5750\u6807\uff0c\u518d\u53bb\u67e5\u968f\u673a\u79cd\u5b50\u3001\u521d\u59cb\u5316\u3001\u5e03\u5c40\u7248\u672c\u548c\u5e76\u884c\u8bbe\u7f6e\u624d\u6709\u9488\u5bf9\u6027\u3002<a href=\"https:\/\/umap-learn.readthedocs.io\/en\/latest\/reproducibility.html\">UMAP \u4f5c\u8005\u5bf9\u968f\u673a\u72b6\u6001\u548c\u5e76\u884c\u7684\u89e3\u91ca<\/a><\/p>\n<p>\u6709\u4e9b\u8bba\u6587\u53ea\u7ed9\u4e86\u6700\u7ec8\u56fe\u7247\u6216\u67d3\u8272\u56fe\uff0c\u6ca1\u6709\u9010\u7ec6\u80de\u5750\u6807\u548c\u4e2d\u95f4\u5bf9\u8c61\u3002\u6b64\u65f6\u4ecd\u53ef\u4ee5\u6838\u5bf9\u6e90\u6837\u672c\u3001\u7ec6\u80de\u8fc7\u6ee4\u6570\u91cf\u3001\u6807\u8bb0\u548c\u5df2\u77e5\u7c7b\u522b\uff0c\u5374\u65e0\u6cd5\u5ba3\u79f0\u7cbe\u786e\u590d\u73b0\u4e86\u539f\u7ec6\u80de\u90bb\u8fb9\u3002\u628a\u80fd\u68c0\u67e5\u5230\u54ea\u4e00\u5c42\u5199\u6e05\u695a\uff0c\u6bd4\u5f3a\u6c42\u56fe\u5f62\u671d\u5411\u4e00\u81f4\u66f4\u8bda\u5b9e\u4e5f\u66f4\u7701\u65f6\u3002\u53e6\u4e00\u4e2a\u5b9e\u7528\u505a\u6cd5\u662f\u627e\u51fa\u4e24\u5957\u7ed3\u679c\u90fd\u80fd\u7a33\u5b9a\u8bc6\u522b\u7684\u6838\u5fc3\u7ec6\u80de\u4e0e\u5bf9\u8bbe\u7f6e\u654f\u611f\u7684\u8fb9\u7f18\u6210\u5458\uff0c\u5206\u522b\u62a5\u544a\u3002\u5373\u4f7f\u6574\u4f53\u6bd4\u8f83\u826f\u597d\uff0c\u7a00\u6709\u4e9a\u7fa4\u7684\u90bb\u5c45\u4e00\u65e6\u5168\u90e8\u6539\u53d8\uff0c\u4ecd\u53ef\u80fd\u76f4\u63a5\u5f71\u54cd\u6587\u7ae0\u7ed3\u8bba\u3002<\/p>\n<p>\u901a\u5e38\u6211\u4f1a\u518d\u5b58\u4e00\u4efd\u5f88\u5c0f\u7684\u4eba\u5de5\u62bd\u67e5\u8868\u3002\u6bcf\u4e2a\u5927\u7c7b\u9009\u4e00\u9897\u4f4d\u7f6e\u63a5\u8fd1\u4e2d\u5fc3\u7684\u7ec6\u80de\uff0c\u53c8\u9009\u4e00\u9897\u9760\u7740\u8fb9\u754c\u7684\u7ec6\u80de\uff0c\u4e3a\u5b83\u4eec\u6284\u4e0b\u539f\u53c2\u8003\u4e0e\u65b0\u7ed3\u679c\u7684\u90bb\u5c45\u540d\u5355\u548c\u6807\u7b7e\u3002\u4ea4\u7ed9\u540c\u4e8b\u65f6\u4ed6\u53ef\u4ee5\u76f4\u63a5\u62ff\u8fd9\u4e9b\u6761\u7801\u5728\u5b8c\u6574\u5bf9\u8c61\u91cc\u5b9a\u4f4d\uff0c\u4e0d\u5fc5\u52a0\u8f7d\u5168\u90e8\u8ddd\u79bb\u77e9\u9635\u3002\u5f53\u4e2d\u5fc3\u7ec6\u80de\u7a33\u5b9a\u3001\u8fb9\u754c\u6761\u7801\u6613\u53d8\u65f6\uff0c\u65b9\u6cd5\u6bb5\u53ef\u4ee5\u5206\u522b\u63cf\u8ff0\u4e24\u4e2a\u533a\u95f4\u7684\u7f6e\u4fe1\u7a0b\u5ea6\u3002\u82e5\u8fde\u6838\u5fc3\u6761\u7801\u4e5f\u51fa\u73b0\u5927\u5e45\u6539\u53d8\uff0c\u624d\u503c\u5f97\u628a\u6392\u67e5\u4f18\u5148\u7ea7\u653e\u5728\u5f52\u4e00\u5c42\u3001\u57fa\u56e0\u987a\u5e8f\u53ca\u6279\u6b21\u5904\u7406\u4e0a\u3002<\/p>\n<p>\u5982\u679c\u60f3\u91cf\u5316\u968f\u673a\u79cd\u5b50\u672c\u8eab\u5e26\u6765\u7684\u5e45\u5ea6\uff0c\u56fa\u5b9a\u8868\u8fbe\u5c42\u3001\u4e3b\u6210\u5206\u548c\u540c\u4e00\u5f20\u5df2\u7ecf\u5b58\u597d\u7684\u56fe\uff0c\u53ea\u91cd\u590d\u4e8c\u7ef4\u5e03\u5c40\u3002\u7528\u540c\u6837\u7684\u666e\u6c0f\u5bf9\u9f50\u4e0e\u4e8c\u7ef4\u90bb\u5c45\u6307\u6807\u8bb0\u5f55\u591a\u4e2a\u79cd\u5b50\u7684\u8303\u56f4\uff0c\u628a\u8fd9\u4efd\u81ea\u7136\u6ce2\u52a8\u540c\u4e0a\u6e38\u6539\u52a8\u7684\u7ed3\u679c\u653e\u5728\u4e00\u8d77\u3002\u8ba1\u7b97\u65f6\u5207\u8bb0\u4fdd\u7559\u6bcf\u4e00\u6b21\u5c1d\u8bd5\uff0c\u4e0d\u80fd\u4e8b\u540e\u53ea\u6311\u51fa\u6700\u50cf\u539f\u8bba\u6587\u7684\u4e00\u5f20\u5f53\u6210\u552f\u4e00\u4ee3\u8868\u3002<\/p>\n<p>\u5b9e\u9645\u4ea4\u4ed8\u65f6\uff0c\u4e3a\u6bcf\u5f20\u56fe\u4fdd\u5b58\u6761\u7801\u987a\u5e8f\u3001\u8f93\u5165\u5c42\u4e0e\u7279\u5f81\u5217\u8868\u3001\u5efa\u56fe\u7a7a\u95f4\u3001\u53c2\u6570\u4ee5\u53ca\u751f\u6210\u7a0b\u5e8f\u7248\u672c\u3002\u590d\u73b0\u8bb0\u5f55\u5e94\u5199\u6e05\u54ea\u4e2a\u73af\u8282\u9996\u6b21\u51fa\u73b0\u5dee\u522b\uff0c\u54ea\u4e9b\u6570\u5b57\u4ecd\u4e0e\u53c2\u8003\u4e00\u81f4\uff0c\u54ea\u4e00\u7c7b\u7ec6\u80de\u53d7\u5f71\u54cd\u6700\u660e\u663e\u3002\u82e5\u5c06\u6765\u9700\u8981\u5bf9\u4e0d\u540c\u4f9b\u8005\u548c\u53c2\u6570\u4ece\u8868\u8fbe\u5c42\u91cd\u590d\u6574\u4e2a\u8fc7\u7a0b\uff0c\u5148\u5b8c\u6210\u4e00\u4e2a\u5c0f\u6837\u672c\u7684\u6838\u5bf9\uff0c\u518d\u6309\u77e9\u9635\u5927\u5c0f\u548c\u9700\u8981\u4fdd\u5b58\u7684\u90bb\u5c45\u56fe\u6570\u9009\u62e9<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\">\u4e91\u751f\u4fe1\u79d1\u7814\u670d\u52a1\u5668\u79df\u8d41<\/a>\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece Scanpy \u7684\u516c\u5f00 PBMC3K \u53c2\u8003\u5bf9\u8c61\u53d6\u51fa\u76f8\u540c\u7684 562 \u4e2a\u6761\u7801\uff0c\u5206\u522b\u68c0\u9a8c\u6574\u4f53\u65cb\u8f6c\u548c\u4ece\u4e0a\u6e38\u66f4\u6539\u7279\u5f81\u91cd\u65b0\u62df\u5408\u6240\u9020\u6210\u7684\u56fe\u5f62\u5dee\u522b\u3002<\/p>\n","protected":false},"author":1,"featured_media":72368,"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":[71],"tags":[],"class_list":["post-72371","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-single-cell"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-092-umap-stage-audit.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72371","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=72371"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72371\/revisions"}],"predecessor-version":[{"id":73730,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72371\/revisions\/73730"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/72368"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=72371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=72371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=72371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}