当前位置: 首页 > article >正文

AF3 _build_query_to_hit_index_mapping函数解读

AlphaFold3 中templates模块的_build_query_to_hit_index_mapping函数是将原始查询序列original_query_sequence)中的索引与hit 序列hit_sequence)中的索引进行映射。

在蛋白质序列比对(如 HHsearch)中,hit 是与查询序列部分匹配的区域。由于存在缺口-)和部分比对,该函数修正索引,使得可以将原始序列的每个氨基酸位置正确映射到 hit 序列中。

该函数输入参数主要来自 HHsearch/HMMsearch 解析器 生成TemplateHit数据,返回的索引映射map可以用于提取模版特征(_extract_template_features函数参数)。

源代码:

def _build_query_to_hit_index_mapping(
        hit_query_sequence: str,
        hit_sequence: str,
        indices_hit: Sequence[int],
        indices_query: Sequence[int],
        original_query_sequence: str,
) -> Mapping[int, int]:
    """Gets mapping from indices in original query sequence to indices in the hit.

    hit_query_sequence and hit_sequence are two aligned sequences containing gap
    characters. hit_query_sequence contains only the part of the original query
    sequence that matched the hit. When interpreting the indices from the .hhr, we
    need to correct for this to recover a mapping from original query sequence to
    the hit sequence.

    Args:
        hit_query_sequence: The portion of the query sequence that is in the .hhr
            hit
        hit_sequence: The portion of the hit sequence that is in the .hhr
 

http://www.kler.cn/a/556026.html

相关文章:

  • windows 安装 stable diffusion
  • CPCI机箱 阿尔泰科技4槽2U CPCI测控机箱 后IO走线 CPCIC7604A
  • Java——列表(List)
  • org.mortbay.jetty和org.eclipse.jetty的区别
  • 第4章 信息系统架构(五)
  • CNN 卷积神经网络【更新中】
  • Web数据管理复习考点整理
  • PyTorch-基础(CUDA、Dataset、transforms、卷积神经网络、VGG16)
  • 去中心化协作智能生态系统设计
  • 对学习编程语言的一些理解
  • 如何为自己的 PDF 文件添加密码?在线加密 PDF 文件其实更简单
  • 【弹性计算】虚拟化技术
  • Visual studio 2022 将打开文件的方式由单击改为双击
  • python入门 函数
  • Word文档中插入的图片不能完整显示
  • 传输与接入(无线)问答题及答案-2(25题)
  • 【react18】如何使用useReducer和useContext来实现一个todoList功能
  • 低代码与开发框架的一些整合[2]
  • 清影2.0(AI视频生成)技术浅析(四):计算机视觉(CV)
  • ArcGIS Pro挖填方计算指南:全面解析与实施步骤