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

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 need
    to perform a realignment to the actual sequence that is in the mmCIF file.
    This method performs such realignment, but returns the new sequence and
    mapping only if the sequence in the mmCIF file is 90% identical to the old
    sequence.

    Note that the old_template_sequence comes from the hit, and contains only that
    part of the chain that matches with the query while the new_template_sequence
    is the full chain.

    Args:
        old_template_sequence: The template sequence that was returned by the PDB
            template search (typically done using HHSearch).
        template_chain_id: The template chain id was returned by the PDB template
            search (typically done using HHSearch). This is used to find the right
            chain 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 query
            sequence to the actual mmcif_object template sequence by aligning the
            old_template_sequence and the actual template sequence.
        kalign_binary_path: The path to a kalign executable.

    Returns:
        A t

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

相关文章:

  • DeepSeek 冲击(含本地化部署实践)
  • ios UICollectionView使用
  • android调用ffmpeg解析rtsp协议的视频流
  • 【重磅发布】OmniParser V2-开启GUI自动化新时代
  • Spark(2)linux和简单命令
  • PDF文档管理系统V2.0
  • Mac端homebrew安装配置
  • 安全防御综合练习2 nat+智能选路
  • 问题记录汇总
  • ref() 和 reactive()响应性 浅解
  • mapbox基础,使用geojson加载Fill面图层
  • docker之图形界面portainer.io无法访问问题及解决办法
  • 挖掘图片的秘密:如何用piexif提取和修改Exif数据
  • 正则表达式–断言
  • 蓝桥杯班级活动
  • javaEE-13.spring MVC
  • k8s的资源说明 cpu 内存 requests usage limits
  • freesiwtch启用esl,nodejs调用api
  • 基于Spring Boot的售楼管理系统设计与实现(LW+源码+讲解)
  • Unity学习part4