{"id":72349,"date":"2026-11-17T13:34:37","date_gmt":"2026-11-17T05:34:37","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=72349"},"modified":"2026-11-17T13:34:37","modified_gmt":"2026-11-17T05:34:37","slug":"ysx-sc-practice-088-common-atac-intervals","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-088-common-atac-intervals\/","title":{"rendered":"\u4e24\u4e2a\u4f9b\u8005\u7684 ATAC \u5cf0\u8fb9\u754c\u5dee\u4e86\u51e0\u5341\u4e2a\u78b1\u57fa\uff0c\u8fd8\u80fd\u6bd4\u8f83\u5f00\u653e\u7a0b\u5ea6\u5417\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>\u4e24\u4e2a\u4f9b\u8005\u5728\u540c\u4e00\u4f4d\u7f6e\u90fd\u6709\u5f00\u653e\u4fe1\u53f7\uff0c\u7b2c\u4e00\u4efd\u5cf0\u8868\u4ece\u4e00\u5343\u5230\u4e00\u5343\u4e00\u767e\uff0c\u7b2c\u4e8c\u4efd\u5374\u4ece\u4e00\u5343\u96f6\u56db\u5341\u5199\u5230\u4e00\u5343\u4e00\u767e\u4e94\u5341\u3002\u628a\u4e24\u884c\u90fd\u91cd\u547d\u540d\u6210\u540c\u4e00\u4e2a\u533a\u57df\uff0c\u518d\u628a\u8ba1\u6570\u6284\u5230\u4e00\u5f20\u8868\uff0c\u770b\u8d77\u6765\u5c31\u53ef\u4ee5\u6bd4\u8f83\u3002\u53ef\u7b2c\u4e00\u4f4d\u4f9b\u8005\u5728\u9644\u8fd1\u8fd8\u6709\u4e00\u4e2a\u4e0e\u81ea\u5df1\u91cd\u53e0\u7684\u5cf0\u3002\u539f\u6709\u4e24\u884c\u7684\u8ba1\u6570\u76f8\u52a0\u5f97\u5230\u4e8c\u767e\u96f6\u56db\uff0c\u56de\u5230\u7247\u6bb5\u8868\u5728\u5171\u540c\u533a\u95f4\u91cd\u6570\uff0c\u5374\u53ea\u6709\u4e00\u767e\u4e00\u5341\u516b\u3002\u5dee\u51fa\u6765\u7684\u516b\u5341\u591a\u4e2a\u8ba1\u6570\u662f\u4ece\u54ea\u6765\u7684\uff1f\u8fd9\u4e2a\u95ee\u9898\u7528\u4e24\u4efd\u5c0f\u6587\u4ef6\u5c31\u80fd\u5728\u672c\u673a\u67e5\u660e\uff0c\u4e5f\u76f4\u63a5\u51b3\u5b9a\u4e0b\u6e38\u5dee\u5f02\u5f00\u653e\u5206\u6790\u6709\u6ca1\u6709\u53ef\u6bd4\u7684\u5206\u6bcd\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\u4f4d\u4f9b\u8005\u7684\u5cf0\u9519\u5f00\u51e0\u5341\u4e2a\u78b1\u57fa\uff0c\u5148\u628a\u5c3a\u5b50\u5bf9\u9f50\uff0c\u518d\u4ece\u7247\u6bb5\u91cd\u6570\u3002D1 \u4e24\u4e2a\u65e7\u5cf0\u5206\u522b\u8ba1\u6570\uff0c\u76f8\u52a0\u4e3a 204\uff1b\u540c\u4e00\u7247\u6bb5\u6587\u4ef6\u3001\u540c\u4e00\u5171\u540c\u533a\u95f4\uff0c\u5f97\u5230 118\uff1bD2 \u6ca1\u6709\u72ec\u7acb\u5cf0\u7684\u4e00\u4e2a\u4f4d\u7f6e\u4ecd\u6709 35 \u4e2a\u7247\u6bb5\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-088-common-atac-intervals.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-088-common-atac-intervals.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-088-common-atac-intervals.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u4e24\u4e2a\u6570\u5b57\u4e4b\u524d\uff0c\u5148\u5bf9\u9f50\u4e00\u4e2a\u57fa\u56e0\u7ec4<\/h2>\n<p>\u4e0b\u8f7d\u5305\u7528\u4e86\u865a\u62df\u7684\u53c2\u8003\u7ec4\u88c5\u548c\u67d3\u8272\u4f53\uff0c\u628a\u590d\u6742\u76ee\u5f55\u7f29\u6210\u4e24\u4f4d\u4f9b\u8005\u5404\u4e00\u4efd BED \u4e0e\u7247\u6bb5\u6587\u4ef6\u3002\u6bcf\u4f4d\u4f9b\u8005\u4e8c\u5341\u56db\u9897\u7ec6\u80de\uff0c\u5cf0\u8868\u52a0\u8d77\u6765\u4e5d\u884c\u3002\u6837\u672c\u6e05\u5355\u5217\u660e\u53c2\u8003\u540d\u79f0\u548c\u5750\u6807\u7ea6\u5b9a\u3002\u811a\u672c\u5728\u5408\u5e76\u524d\u68c0\u67e5\u8fd9\u4e9b\u5b57\u6bb5\uff0c\u53ea\u8981\u4e24\u4e2a\u6837\u672c\u58f0\u79f0\u5904\u4e8e\u4e0d\u540c\u7ec4\u88c5\uff0c\u5c31\u505c\u6b62\u5e76\u62a5\u544a\u3002\u771f\u5b9e\u9879\u76ee\u91cc\uff0c\u540c\u4e00\u4e2a\u6570\u503c\u5750\u6807\u5728\u4e0d\u540c\u53c2\u8003\u7248\u672c\u4e2d\u53ef\u80fd\u6307\u5411\u4e0d\u540c\u5e8f\u5217\uff0c\u4ec5\u7ed9\u67d3\u8272\u4f53\u52a0\u4e2a\u524d\u7f00\u5e76\u4e0d\u80fd\u5b8c\u6210\u8f6c\u6362\u3002\u82e5\u786e\u9700\u8de8\u7248\u672c\u6620\u5c04\uff0c\u8fd8\u5e94\u4fdd\u7559\u672a\u6620\u5c04\u3001\u591a\u91cd\u6620\u5c04\u548c\u6620\u5c04\u540e\u5bbd\u5ea6\u53d8\u5316\u7684\u533a\u95f4\uff0c\u518d\u51b3\u5b9a\u54ea\u4e9b\u771f\u6b63\u53ef\u4ee5\u5e26\u5165\u5171\u540c\u7279\u5f81\u96c6\u3002<\/p>\n<p>\u672c\u4f8b\u7684\u533a\u95f4\u662f\u96f6\u8d77\u70b9\u3001\u5de6\u95ed\u53f3\u5f00\u3002\u8d77\u70b9\u4e3a\u56db\u5343\u3001\u7ec8\u70b9\u4e3a\u56db\u5343\u4e00\u767e\u7684\u5cf0\uff0c\u5305\u542b\u7684\u6700\u540e\u4e00\u4e2a\u5750\u6807\u662f\u56db\u5343\u96f6\u4e5d\u5341\u4e5d\u3002\u53e6\u4e00\u4e2a\u533a\u95f4\u6070\u597d\u4ece\u56db\u5343\u4e00\u767e\u5f00\u59cb\uff0c\u4e24\u8005\u6ca1\u6709\u5171\u540c\u78b1\u57fa\u3002\u4e0d\u540c\u8f6f\u4ef6\u5bf9\u9996\u5c3e\u76f8\u63a5\u7684\u533a\u95f4\u662f\u5426\u5408\u5e76\u53ef\u4ee5\u6709\u4e0d\u540c\u9009\u62e9\uff0c\u5c24\u5176\u4e00\u4e9b\u5de5\u5177\u9ed8\u8ba4\u4e5f\u5408\u5e76\u9996\u5c3e\u76f8\u90bb\u9879\u3002\u6211\u4eec\u6545\u610f\u628a\u8fd9\u6837\u7684\u4e00\u5bf9\u7559\u4e86\u4e0b\u6765\uff0c\u5e76\u5728\u4ee3\u7801\u91cc\u7528\u4e25\u683c\u5c0f\u4e8e\u53f7\u51b3\u5b9a\u5408\u5e76\u3002\u82e5\u9879\u76ee\u60f3\u628a\u76f8\u90bb\u5cf0\u4e5f\u5408\u6210\u4e00\u6bb5\uff0c\u5148\u6539\u89c4\u5219\uff0c\u518d\u7528\u8fd9\u7ec4\u53cd\u4f8b\u68c0\u9a8c\u9884\u671f\u6709\u6ca1\u6709\u53d8\u3002\u8fd9\u6837\u5c0f\u7684\u5224\u65ad\u6539\u53d8\u5f80\u5f80\u6bd4\u8c03\u4e00\u4e2a\u663e\u8457\u6027\u9608\u503c\u66f4\u65e9\u5f71\u54cd\u7ed3\u679c\u3002<a href=\"https:\/\/bedtools.readthedocs.io\/en\/latest\/content\/tools\/intersect.html\">BEDTools \u76f8\u4ea4\u8bf4\u660e<\/a><\/p>\n<h2>\u4e3a\u6bcf\u4e2a\u5171\u540c\u533a\u95f4\u4fdd\u7559\u539f\u6765\u7684\u8c03\u7528\u6765\u6e90<\/h2>\n<p>\u5148\u628a\u6240\u6709\u5cf0\u6309\u67d3\u8272\u4f53\u3001\u8d77\u70b9\u548c\u7ec8\u70b9\u6392\u5e8f\u3002\u5982\u679c\u5f53\u524d\u533a\u95f4\u4e0e\u5df2\u5408\u5e76\u7684\u6700\u540e\u4e00\u6bb5\u81f3\u5c11\u91cd\u53e0\u4e00\u4e2a\u78b1\u57fa\uff0c\u5c31\u5ef6\u957f\u7ec8\u70b9\uff0c\u5e76\u4fdd\u7559\u54ea\u4e9b\u4f9b\u8005\u63d0\u4f9b\u4e86\u8fd9\u4e2a\u533a\u95f4\u3002\u4e00\u4e2a\u4f9b\u8005\u81ea\u5df1\u7684\u4e24\u4e2a\u91cd\u53e0\u5cf0\u540c\u6837\u4f1a\u5728\u8fd9\u4e00\u6b65\u8fde\u8d77\u6765\u3002\u6b64\u6cd5\u5141\u8bb8\u94fe\u5f0f\u5408\u5e76\uff0c\u5373\u7b2c\u4e00\u6bb5\u4e0e\u7b2c\u4e8c\u6bb5\u91cd\u53e0\uff0c\u7b2c\u4e8c\u6bb5\u4e0e\u7b2c\u4e09\u6bb5\u91cd\u53e0\uff0c\u5373\u4f7f\u7b2c\u4e00\u6bb5\u6ca1\u6709\u76f4\u63a5\u78b0\u5230\u7b2c\u4e09\u6bb5\uff0c\u6700\u540e\u4e5f\u5f97\u5230\u4e00\u4e2a\u66f4\u5bbd\u7684\u533a\u95f4\u3002\u8fd9\u5bf9\u5efa\u7acb\u53ef\u91cd\u590d\u8ba1\u6570\u7684\u5171\u540c\u7279\u5f81\u5341\u5206\u65b9\u4fbf\uff0c\u4f46\u4e5f\u63d0\u793a\u4e86\u8fb9\u754c\u51b3\u5b9a\u7684\u751f\u7269\u5b66\u4ee3\u4ef7\uff1a\u539f\u5148\u4e24\u4e2a\u76f8\u8fd1\u5374\u72ec\u7acb\u7684\u8c03\u63a7\u5143\u4ef6\uff0c\u53ef\u80fd\u843d\u5165\u540c\u4e00\u884c\u5206\u6790\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 union_intervals(peaks):\n    rows=[]\n    for r in peaks.sort_values([&quot;chrom&quot;,&quot;start&quot;,&quot;end&quot;]).itertuples():\n        if rows and rows[-1][0]==r.chrom and r.start&lt;rows[-1][2]:\n            rows[-1][2]=max(rows[-1][2],r.end);rows[-1][3].add(r.donor)\n        else:rows.append([r.chrom,r.start,r.end,{r.donor}])\n    return pd.DataFrame([(c,s,e,&quot;,&quot;.join(sorted(o))) for c,s,e,o in rows],columns=[&quot;chrom&quot;,&quot;start&quot;,&quot;end&quot;,&quot;called_by&quot;])\n<\/code><\/pre>\n<p>\u82e5\u76ee\u6807\u57fa\u56e0\u5468\u56f4\u7684\u5cf0\u975e\u5e38\u5bc6\uff0c\u53ef\u4ee5\u6362\u6210\u4ee5\u660e\u786e\u5cf0\u9876\u4e3a\u4e2d\u5fc3\u7684\u56fa\u5b9a\u5bbd\u7a97\u53e3\uff0c\u6216\u5728\u91cd\u53e0\u65f6\u6309\u9884\u5148\u8bbe\u5b9a\u89c4\u5219\u4fdd\u7559\u53ef\u91cd\u590d\u7684\u4ee3\u8868\u5cf0\u3002\u9009\u62e9\u8981\u5199\u5728\u770b\u5dee\u5f02\u7ed3\u679c\u4e4b\u524d\uff0c\u518d\u5217\u51fa\u5bbd\u5ea6\u5206\u5e03\u3001\u88ab\u5408\u5e76\u7684\u65e7\u5cf0\u6570\u3001\u54ea\u4e9b\u90bb\u8fd1\u57fa\u56e0\u53d7\u5230\u5f71\u54cd\u3002\u65e0\u8bba\u91c7\u53d6\u54ea\u4e00\u79cd\u7279\u5f81\u7b56\u7565\uff0c\u5f97\u5230\u7684\u5171\u540c\u5750\u6807\u90fd\u5e94\u4fdd\u5b58\u6210\u72ec\u7acb\u6587\u4ef6\u3002\u540e\u7eed\u8ba1\u6570\u4f7f\u7528\u8fd9\u4e2a\u6587\u4ef6\u4f5c\u4e3a\u552f\u4e00\u7684\u533a\u95f4\u5b9a\u4e49\uff1b\u53e6\u5916\u628a\u539f\u5cf0\u53ca\u5176\u662f\u5426\u88ab\u6bcf\u4e2a\u4f9b\u8005\u8c03\u7528\u4fdd\u7559\u6210\u6ce8\u91ca\uff0c\u8fd9\u6837\u65e2\u80fd\u516c\u5e73\u6bd4\u8f83\uff0c\u4e5f\u80fd\u56de\u5230\u5404\u81ea\u7684\u53d1\u73b0\u8fc7\u7a0b\u53d6\u8bc1\u3002<a href=\"https:\/\/stuartlab.org\/signac\/articles\/peak_calling\">Signac \u6309\u7ec6\u80de\u7fa4\u627e\u5cf0<\/a><\/p>\n<h2>\u6bcf\u4f4d\u4f9b\u8005\u90fd\u4ece\u540c\u4e00\u5957\u7a97\u53e3\u91cd\u65b0\u8ba1\u6570<\/h2>\n<p>\u73b0\u5728\u628a\u4e24\u4efd\u7247\u6bb5\u8868\u5206\u522b\u4e0e\u5171\u540c\u533a\u95f4\u76f8\u4ea4\u3002\u4e00\u6761\u8bb0\u5f55\u7684\u672b\u7aef\u53ea\u8981\u8d85\u8fc7\u7a97\u53e3\u8d77\u70b9\uff0c\u540c\u65f6\u5176\u8d77\u70b9\u5c0f\u4e8e\u7a97\u53e3\u672b\u7aef\uff0c\u5c31\u8bf4\u660e\u6709\u5b9e\u9645\u91cd\u53e0\u3002\u4f8b\u5b50\u4f7f\u7528\u6bcf\u6761\u5df2\u53bb\u91cd\u7247\u6bb5\u8ba1\u4e00\u6b21\uff0c\u540c\u65f6\u53e6\u6570\u591a\u5c11\u4e2a\u4e0d\u540c\u6761\u7801\u6709\u8d21\u732e\u3002\u4e00\u4e2a\u533a\u95f4\u53ef\u4ee5\u6709\u4e00\u767e\u6761\u7247\u6bb5\u5374\u53ea\u6765\u81ea\u5c11\u6570\u7ec6\u80de\uff0c\u53e6\u4e00\u4e2a\u533a\u95f4\u7684\u603b\u6570\u76f8\u4f3c\u5374\u5206\u5e03\u5728\u8bb8\u591a\u7ec6\u80de\uff0c\u8bfb\u8005\u9700\u8981\u8fd9\u4e24\u5217\u6765\u5224\u65ad\u8986\u76d6\u662f\u5426\u7a33\u5b9a\u3002\u6837\u672c\u7684\u5168\u90e8\u7247\u6bb5\u884c\u6570\u4e5f\u4fdd\u7559\u4e0b\u6765\uff0c\u753b\u56fe\u65f6\u624d\u77e5\u9053\u6bcf\u4e07\u4e2a\u53ef\u7528\u7247\u6bb5\u7684\u76f8\u5bf9\u8986\u76d6\u7a76\u7adf\u7528\u4ec0\u4e48\u4f5c\u5206\u6bcd\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 intersection_counts(fragments,c,s,e):\n    take=fragments.chrom.eq(c)&amp;fragments.start.lt(e)&amp;fragments.end.gt(s)\n    return int(take.sum()),int(fragments.loc[take,&quot;barcode&quot;].nunique())\n<\/code><\/pre>\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:#ffebc5\">\u5171\u540c\u533a\u95f4\u53ca\u4f9b\u8005<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u81ea\u5df1\u66fe\u8c03\u7528\u7684\u5cf0\u6570<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u539f\u5cf0\u8ba1\u6570\u76f8\u52a0<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u540c\u4e00\u5171\u540c\u533a\u95f4\u91cd\u6570<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">[1000,1160) \u7684 D1<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">2<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">204<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">118<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">[1000,1160) \u7684 D2<\/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\">108<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">115<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">[4000,4100) \u7684 D2<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">35<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">[4100,4200) \u7684 D1<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">40<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u7b2c\u4e00\u884c\u7ed9\u51fa\u4e86\u91cd\u590d\u8ba1\u6570\u53d1\u751f\u7684\u76f4\u63a5\u8bc1\u636e\uff1a\u4e00\u6761\u8f83\u957f\u7684\u7247\u6bb5\u82e5\u540c\u65f6\u78b0\u5230\u540c\u4e00\u4f9b\u8005\u81ea\u5df1\u7684\u4e24\u4e2a\u65e7\u5cf0\uff0c\u5728\u4e24\u884c\u91cc\u90fd\u4f1a\u8d21\u732e\u4e00\u6b21\u3002\u7edf\u4e00\u7a97\u53e3\u540e\uff0c\u8fd9\u6761\u8bb0\u5f55\u5728\u540c\u4e00\u7279\u5f81\u4e2d\u53ea\u6709\u4e00\u7968\u3002\u7b2c\u4e8c\u884c\u5219\u51fa\u73b0\u76f8\u53cd\u65b9\u5411\uff0c\u539f\u5148\u7684\u5355\u4e2a\u5cf0\u7565\u7a84\uff0c\u7a97\u53e3\u6269\u5927\u540e\u7eb3\u5165\u4e86\u539f\u6765\u6ca1\u6709\u78b0\u5230\u5b83\u7684\u7247\u6bb5\u3002\u7b2c\u4e09\u548c\u7b2c\u56db\u884c\u66f4\u80fd\u8bf4\u660e\u4e3a\u4ec0\u4e48\u7f3a\u5931\u503c\u4e0d\u80fd\u673a\u68b0\u586b\u96f6\u3002\u8be5\u4f9b\u8005\u7684\u5cf0\u8c03\u7528\u6ca1\u6709\u62a5\u51fa\u8fd9\u4e2a\u533a\u95f4\uff0c\u4e0e\u8be5\u4f9b\u8005\u7684\u7247\u6bb5\u5b8c\u5168\u4e0d\u8986\u76d6\u5b83\uff0c\u662f\u4e24\u4ef6\u53ef\u4ee5\u5206\u522b\u67e5\u9a8c\u7684\u4e8b\u60c5\u3002\u6b64\u5904\u5b9e\u9645\u6570\u5230\u4e09\u5341\u4e94\u6216\u56db\u5341\u4e2a\u7247\u6bb5\uff0c\u65e7\u8868\u683c\u4e2d\u586b\u7684\u96f6\u660e\u660e\u4e0e\u7269\u7406\u8bb0\u5f55\u51b2\u7a81\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<\/code><\/pre>\n<h2>\u7528\u4e24\u6761\u6781\u7aef\u8fb9\u754c\u7ed9\u81ea\u5df1\u7684\u811a\u672c\u9a8c\u7b97<\/h2>\n<p>\u53ef\u4ee5\u4e0d\u7528\u771f\u5b9e\u5cf0\u8868\uff0c\u624b\u5199\u4e00\u6761\u4ece\u4e09\u5343\u4e5d\u767e\u5230\u56db\u5343\u7684\u7247\u6bb5\uff0c\u518d\u5199\u4e00\u6761\u4ece\u56db\u5343\u5230\u56db\u5343\u96f6\u4e00\u7684\u7247\u6bb5\u3002\u524d\u8005\u521a\u597d\u5728\u7a97\u53e3\u5de6\u4fa7\u7ec8\u6b62\uff0c\u540e\u8005\u6070\u597d\u5360\u7528\u7b2c\u4e00\u4e2a\u78b1\u57fa\u3002\u5bf9\u4e8e\u56db\u5343\u81f3\u56db\u5343\u4e00\u767e\u7684\u7a97\u53e3\uff0c\u53ea\u6709\u540e\u8005\u5e94\u8d21\u732e\u8ba1\u6570\u3002\u518d\u5199\u4e00\u6761\u8de8\u8fc7\u56db\u5343\u4e00\u767e\u7684\u957f\u7247\u6bb5\uff0c\u5b83\u53ef\u4ee5\u5206\u522b\u4e3a\u5de6\u53f3\u4e24\u4e2a\u4e0d\u540c\u7684\u5171\u540c\u7a97\u53e3\u5404\u8d21\u732e\u4e00\u6b21\u3002\u8fd9\u91cc\u201c\u5728\u4e00\u4e2a\u7a97\u53e3\u5185\u53bb\u91cd\u201d\u4e0e\u201c\u5728\u5168\u57fa\u56e0\u7ec4\u6bcf\u6761\u7247\u6bb5\u53ea\u80fd\u5206\u7ed9\u4e00\u4e2a\u7279\u5f81\u201d\u662f\u4e0d\u540c\u9009\u62e9\u3002\u672c\u6559\u7a0b\u9009\u62e9\u6309\u6bcf\u4e2a\u7279\u5f81\u72ec\u7acb\u8ba1\u91cd\u53e0\uff0c\u6240\u4ee5\u628a\u591a\u884c\u7279\u5f81\u8ba1\u6570\u76f8\u52a0\uff0c\u53ef\u80fd\u8d85\u8fc7\u4efb\u4e00\u533a\u95f4\u5e76\u96c6\u91cc\u7684\u72ec\u7acb\u7269\u7406\u5206\u5b50\u6570\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 pandas as pd\nfrom run import intersection_counts\ntiny = pd.DataFrame([(&quot;chrSim&quot;, 3900, 4000, &quot;left&quot;), (&quot;chrSim&quot;, 4000, 4001, &quot;inside&quot;)],\n                    columns=[&quot;chrom&quot;, &quot;start&quot;, &quot;end&quot;, &quot;barcode&quot;])\nassert intersection_counts(tiny, &quot;chrSim&quot;, 4000, 4100) == (1, 1)\n<\/code><\/pre>\n<p>\u8bfb\u8005\u8fd8\u53ef\u4ee5\u628a\u7b2c\u4e00\u4f4d\u4f9b\u8005\u7684\u4e24\u4e2a\u65e7\u5cf0\u5206\u522b\u540c\u539f\u7247\u6bb5\u8fde\u63a5\uff0c\u5217\u51fa\u540c\u65f6\u547d\u4e2d\u4e24\u6bb5\u7684\u6761\u7801\u548c\u5750\u6807\u3002\u5728\u771f\u5b9e\u9879\u76ee\u91cc\uff0c\u82e5\u4e00\u4e2a\u5171\u540c\u533a\u95f4\u660e\u663e\u7531\u591a\u4e2a\u76f8\u90bb\u5cf0\u7ec4\u6210\uff0c\u53ef\u4ee5\u6bd4\u8f83\u5c06\u5b83\u5206\u5f00\u524d\u540e\uff0c\u6548\u5e94\u65b9\u5411\u6709\u6ca1\u6709\u53d1\u751f\u53d8\u5316\u3002\u82e5\u4e00\u4e2a\u4f9b\u8005\u770b\u8d77\u6765\u5728\u6574\u7247\u533a\u57df\u66f4\u5f00\u653e\uff0c\u4f46\u62c6\u6210\u4e24\u6bb5\u540e\u53d1\u73b0\u4e00\u6bb5\u5347\u3001\u4e00\u6bb5\u964d\uff0c\u90a3\u4e48\u6b64\u524d\u5bbd\u7a97\u53e3\u7684\u603b\u6570\u9690\u85cf\u4e86\u65b9\u5411\u76f8\u53cd\u7684\u5c40\u90e8\u73b0\u8c61\u3002\u4e0e\u5176\u7ee7\u7eed\u4e89\u8bba\u54ea\u4e2a\u8fb9\u754c\u624d\u201c\u6b63\u786e\u201d\uff0c\u66f4\u6709\u89e3\u91ca\u529b\u7684\u662f\u628a\u4e24\u5957\u5b9a\u4e49\u3001\u5206\u4f9b\u8005\u8f68\u8ff9\u548c\u539f\u59cb\u8986\u76d6\u653e\u8fdb\u540c\u4e00\u5f20\u56fe\uff0c\u8bf4\u660e\u7ed3\u8bba\u80fd\u7a33\u5b9a\u5230\u54ea\u4e2a\u7a7a\u95f4\u5c3a\u5ea6\u3002<\/p>\n<p>\u6700\u540e\u8fd8\u8981\u786e\u8ba4\u6837\u672c\u4e4b\u95f4\u6709\u53ef\u6bd4\u7684\u7ec6\u80de\u7fa4\u548c\u751f\u7269\u5b66\u91cd\u590d\u3002\u5373\u4fbf\u5750\u6807\u5b8c\u5168\u4e00\u81f4\uff0c\u62ff\u4e00\u4f4d\u4f9b\u8005\u7684\u5168\u90e8\u9ad3\u7cfb\u7ec6\u80de\u540c\u53e6\u4e00\u4f4d\u7684\u5168\u90e8\u6dcb\u5df4\u7ec6\u80de\u6bd4\u8f83\uff0c\u4ecd\u53ef\u80fd\u5f97\u5230\u4e3b\u8981\u53cd\u6620\u7ec6\u80de\u7ec4\u6210\u7684\u5dee\u522b\u3002\u6bd4\u8f83\u540c\u79cd\u7c7b\u578b\u65f6\u5148\u51bb\u7ed3\u6807\u7b7e\uff0c\u6309\u4f9b\u8005\u6c47\u603b\uff0c\u4fdd\u7559\u4e0d\u540c\u5206\u6bcd\u4ee5\u53ca\u6bcf\u4f4d\u4f9b\u8005\u8fdb\u5165\u5206\u6790\u7684\u7ec6\u80de\u6570\u3002\u82e5\u67d0\u4e2a\u4f9b\u8005\u6839\u672c\u6ca1\u6709\u91c7\u5230\u8fd9\u4e2a\u7c7b\u578b\uff0c\u5e94\u5199\u6210\u7f3a\u5c11\u89c2\u6d4b\u673a\u4f1a\uff0c\u4e0d\u80fd\u628a\u5b83\u7f16\u7801\u6210\u8fd9\u4e2a\u7c7b\u578b\u6240\u6709\u5cf0\u90fd\u4e3a\u96f6\u3002\u5728\u5171\u4eab\u5cf0\u96c6\u3001\u8ba1\u6570\u548c\u8bbe\u8ba1\u8868\u90fd\u5bf9\u9f50\u4e4b\u540e\uff0c\u518d\u8c08\u54ea\u4e9b\u5f00\u653e\u53d8\u5316\u6709\u72ec\u7acb\u6837\u672c\u652f\u6301\u3002<\/p>\n<p>\u5b9e\u8df5\u4e2d\u53ef\u4ee5\u7ed9\u6bcf\u7248\u5171\u540c\u5cf0\u8868\u7559\u4e00\u4e2a\u6821\u9a8c\u503c\uff0c\u6570\u8868\u5934\u540c\u65f6\u8bb0\u5f55\u5bf9\u5e94\u7684\u7248\u672c\u3002\u5982\u679c\u5408\u4f5c\u8005\u540e\u6765\u8865\u4e86\u4e00\u4f4d\u4f9b\u8005\uff0c\u65b0\u5bf9\u8c61\u4e0e\u65e7\u5bf9\u8c61\u91cc\u67d0\u4e00\u5217\u5373\u4fbf\u540d\u5b57\u76f8\u540c\uff0c\u4e5f\u8981\u6838\u5bf9\u5750\u6807\u548c\u8fb9\u754c\u662f\u5426\u53d1\u751f\u53d8\u5316\u3002\u53ea\u6709\u5cf0\u8868\u5b8c\u5168\u5339\u914d\uff0c\u624d\u80fd\u628a\u5df2\u6709\u7684\u4f9b\u8005\u8ba1\u6570\u4e0e\u65b0\u589e\u6837\u672c\u5b89\u5168\u5730\u62fc\u63a5\u3002<\/p>\n<p>\u4ea4\u4ed8\u65f6\u53ef\u628a\u5171\u540c\u533a\u95f4\u3001\u539f\u5cf0\u5230\u65b0\u533a\u95f4\u7684\u6620\u5c04\u3001\u5404\u6587\u5e93\u91cd\u6570\u7ed3\u679c\u5e76\u6392\u5b58\u6863\uff0c\u5e76\u8bb0\u4e0b\u53c2\u8003\u7ec4\u88c5\u3001\u5750\u6807\u89c4\u7ea6\u548c\u8ba1\u6570\u7684\u7247\u6bb5\u5b9a\u4e49\u3002\u540c\u4e8b\u4e0b\u4e00\u6b21\u6362\u5cf0\u8c03\u7528\u5668\uff0c\u53ea\u8981\u91cd\u65b0\u751f\u6210\u7279\u5f81\u96c6\u548c\u540c\u4e00\u5957\u91cd\u6570\u7ed3\u679c\uff0c\u5c31\u80fd\u8ffd\u5230\u53d8\u5316\u9996\u5148\u51fa\u73b0\u5728\u54ea\u4e00\u6b65\u3002\u5f53\u4f9b\u8005\u5f88\u591a\u3001\u6bcf\u6b21\u8c03\u6574\u8fb9\u754c\u90fd\u8981\u91cd\u65b0\u904d\u5386\u5927\u91cf\u7247\u6bb5\u65f6\uff0c\u518d\u6839\u636e\u5b9e\u9645\u6587\u4ef6\u603b\u91cf\u548c\u5e76\u884c\u8ba1\u6570\u7684\u6837\u672c\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>\u5728\u4e24\u4efd\u5e26\u72ec\u7acb\u5cf0\u8fb9\u754c\u7684\u7247\u6bb5\u6587\u4ef6\u4e0a\uff0c\u76f4\u63a5\u6bd4\u8f83\u65e7\u8ba1\u6570\u76f8\u52a0\u548c\u5171\u540c\u533a\u95f4\u91cd\u8ba1\u6570\uff0c\u4fdd\u7559\u8de8\u8fb9\u754c\u7684\u53cd\u4f8b\u3002<\/p>\n","protected":false},"author":1,"featured_media":72346,"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-72349","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-088-common-atac-intervals.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72349","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=72349"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72349\/revisions"}],"predecessor-version":[{"id":73726,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72349\/revisions\/73726"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/72346"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=72349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=72349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=72349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}