Skip to content

Commit

Permalink
定义变量yHaplo, mtHaplo时,指定类型
Browse files Browse the repository at this point in the history
  • Loading branch information
mahui-cn committed Mar 4, 2025
1 parent 04492a7 commit b5c865b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
haplo_tol: float = 0.5

# 单倍群分型对象
yHaplo = None
mtHaplo = None
yHaplo: Haplotyping = None
mtHaplo: Haplotyping = None

# 并发Y和mt单倍群分型,注:女性没有Y
cpu_count = cpu_count()
Expand Down
2 changes: 1 addition & 1 deletion test_result.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
<div class="markdown-content">
<div class='table-responsive'><table class='table'><thead><tr><th>Y 单倍群</th><th>SNP突变数</th><th>层级</th><th>可信度</th></tr></thead><tbody><tr style='color: red; font-size: larger;'><td><a href='https://geneu.xyz/haplo-tree/mf/y/G-P15' target='_blank' title='在基因助手GeneU查看MF Y单倍群树'><span style='color: red;'>G-P15</span></a></td><td>26</td><td>11</td><td>18.99%</td></tr><tr style=''><td><a href='https://geneu.xyz/haplo-tree/mf/y/R-L51' target='_blank' title='在基因助手GeneU查看MF Y单倍群树'>R-L51</a></td><td>25</td><td>26</td><td>17.68%</td></tr><tr style=''><td><a href='https://geneu.xyz/haplo-tree/mf/y/G-P287' target='_blank' title='在基因助手GeneU查看MF Y单倍群树'>G-P287</a></td><td>25</td><td>10</td><td>18.87%</td></tr><tr style=''><td><a href='https://geneu.xyz/haplo-tree/mf/y/R-M269' target='_blank' title='在基因助手GeneU查看MF Y单倍群树'>R-M269</a></td><td>24</td><td>24</td><td>16.28%</td></tr><tr style=''><td><a href='https://geneu.xyz/haplo-tree/mf/y/G' target='_blank' title='在基因助手GeneU查看MF Y单倍群树'>G</a></td><td>23</td><td>9</td><td>19.03%</td></tr></tbody></table></div>
<div class='table-responsive'><table class='table'><thead><tr><th>MT 单倍群</th><th>SNP突变数</th><th>层级</th><th>可信度</th></tr></thead><tbody><tr style='color: red; font-size: larger;'><td><a href='https://geneu.xyz/haplo-tree/mf/mt/C1b4' target='_blank' title='在基因助手GeneU查看MF MT单倍群树'><span style='color: red;'>C1b4</span></a></td><td>34</td><td>12</td><td>77.92%</td></tr><tr style=''><td><a href='https://geneu.xyz/haplo-tree/mf/mt/C1e' target='_blank' title='在基因助手GeneU查看MF MT单倍群树'>C1e</a></td><td>34</td><td>11</td><td>70.25%</td></tr><tr style=''><td><a href='https://geneu.xyz/haplo-tree/mf/mt/C7' target='_blank' title='在基因助手GeneU查看MF MT单倍群树'>C7</a></td><td>34</td><td>10</td><td>89.47%</td></tr><tr style=''><td><a href='https://geneu.xyz/haplo-tree/mf/mt/C' target='_blank' title='在基因助手GeneU查看MF MT单倍群树'>C</a></td><td>33</td><td>9</td><td>91.67%</td></tr><tr style=''><td><a href='https://geneu.xyz/haplo-tree/mf/mt/M8' target='_blank' title='在基因助手GeneU查看MF MT单倍群树'>M8</a></td><td>30</td><td>8</td><td>90.91%</td></tr></tbody></table></div>
<div class='alert alert-info' style='margin-top: 10px;' role='alert'><ul><li>您的Y父系单倍群最有可能是<span style='color: red;'>G-P15</span>,可信度较低,可能是由于您的微基因数据有误,或不适用于此分型计算器。</li><li>您的mt母系单倍群最有可能是<span style='color: red;'>C1b4</span>,可信度较高。</li><li>此单倍群分型计算器基于MF的父系单倍群树(40,870个单倍群),母系单倍群树(5,527个单倍群)。采用“均衡型策略”处理SNP假阳的情况。</li><li>此次分析使用您的微基因数据中580个Y-SNP和4,295个mt-SNP,不包含nocall和indel位点。</li><li>非WeGene用户,可在<a href='http://geneu.xyz' target='_blank'>基因助手GeneU.xyz</a>上传样本使用此计算器。</li></ul></div>
<div class='alert alert-info' style='margin-top: 10px;' role='alert'><ul><li>您的Y父系单倍群最有可能是<span style='color: red;'>G-P15</span>,可信度较低,可能是由于您的微基因数据有误,或不适用于此分型计算器。</li><li>您的mt母系单倍群最有可能是<span style='color: red;'>C1b4</span>,可信度较高。</li><li>此单倍群分型计算器基于MF的父系单倍群树(41,431个单倍群),母系单倍群树(5,527个单倍群)。采用“均衡型策略”处理SNP假阳的情况。</li><li>此次分析使用您的微基因数据中580个Y-SNP和4,295个mt-SNP,不包含nocall和indel位点。</li><li>非WeGene用户,可在<a href='http://geneu.xyz' target='_blank'>基因助手GeneU.xyz</a>上传样本使用此计算器。</li></ul></div>
</div>
</div>
</div>
Expand Down

0 comments on commit b5c865b

Please sign in to comment.