欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 会展 > AF3 _realign_pdb_template_to_query 函数解读

AF3 _realign_pdb_template_to_query 函数解读

2025/2/25 17:23:35 来源:https://blog.csdn.net/qq_27390023/article/details/145761989  浏览:    关键词:AF3 _realign_pdb_template_to_query 函数解读

AlphaFold3 中templates模块的_realign_pdb_template_to_query函数是将模板序列与查询序列重新比对,以确保模板来源于最新的 mmCIF 结构文件,而非模板数据库(如 PDB70)中可能存在的过时序列。 在 AlphaFold3 中,模板通常通过 HHsearch 等工具搜索得到,但这些数据库中的模板序列可能与 PDB 官方数据库的最新 mmCIF 文件存在差异。因此,需要使用 Kalign 重新比对,从而获得更准确的模板序列和映射关系。

源代码:

def _realign_pdb_template_to_query(old_template_sequence: str,template_chain_id: str,mmcif_object: mmcif_parsing.MmcifObject,old_mapping: Mapping[int, int],kalign_binary_path: str,
) -> Tuple[str, Mapping[int, int]]:"""Aligns template from the mmcif_object to the query.In case PDB70 contains a different version of the template sequence, we needto perform a realignment to the actual sequence that is in the mmCIF file.This method performs such realignment, but returns the new sequence andmapping only if the sequence in the mmCIF file is 90% identical to the oldsequence.Note that the old_template_sequence comes from the hit, and contains only thatpart of the chain that matches with the query while the new_template_sequenceis the full chain.Args:old_template_sequence: The template sequence that was returned by the PDBtemplate search (typically done using HHSearch).template_chain_id: The template chain id was returned by the PDB templatesearch (typically done using HHSearch). This is used to find the rightchain in the mmcif_object chain_to_seqres mapping.mmcif_object: A mmcif_object which holds the actual template data.old_mapping: A mapping from the query sequence to the template sequence.This mapping will be used to compute the new mapping from the querysequence to the actual mmcif_object template sequence by aligning theold_template_sequence and the actual template sequence.kalign_binary_path: The path to a kalign executable.Returns:A t

版权声明:

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

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

热搜词