欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 手游 > AF3 _build_query_to_hit_index_mapping函数解读

AF3 _build_query_to_hit_index_mapping函数解读

2025/2/22 16:54:52 来源:https://blog.csdn.net/qq_27390023/article/details/145784936  浏览:    关键词: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 gapcharacters. hit_query_sequence contains only the part of the original querysequence that matched the hit. When interpreting the indices from the .hhr, weneed to correct for this to recover a mapping from original query sequence tothe hit sequence.Args:hit_query_sequence: The portion of the query sequence that is in the .hhrhithit_sequence: The portion of the hit sequence that is in the .hhr

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词