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

福建建设厅网站工程履约保险宁德市蕉城区

福建建设厅网站工程履约保险,宁德市蕉城区,郴州网约车,如何做网站卖衣服AlphaFold3的from_pdb_string和from_mmcif_string函数分别用来解析蛋白质PDB和mmCIF 格式结构数据并转换为 Protein 数据类。它通过 Biopython 提供的 PDBParser 和 MMCIFParser 解析 PDB/mmCIF 文件,再通过调用_from_bio_structure函数从 Biopython 解析出的 Structure 提取 …

AlphaFold3的from_pdb_string和from_mmcif_string函数分别用来解析蛋白质PDB和mmCIF 格式结构数据并转换为 Protein 数据类。它通过 Biopython 提供的 PDBParser 和 MMCIFParser 解析 PDB/mmCIF 文件,再通过调用_from_bio_structure函数从 Biopython 解析出的 Structure 提取 原子坐标、残基类型、B 因子等信息,最终返回一个 Protein 对象。

源代码:

def _from_bio_structure(structure: Structure, chain_id: Optional[str] = None
) -> Protein:"""Takes a Biopython structure and creates a `Protein` instance.WARNING: All non-standard residue types will be converted into UNK. Allnon-standard atoms will be ignored.Args:structure: Structure from the Biopython library.chain_id: If chain_id is specified (e.g. A), then only that chain is parsed.Otherwise all chains are parsed.Returns:A new `Protein` created from the structure contents.Raises:ValueError: If the number of models included in the structure is not 1.ValueError: If insertion code is detected at a residue."""models = list(structure.get_models())if len(models) != 1:raise ValueError('Only single model PDBs/mmCIFs are supported. Found'f' {len(models)} models.')model = models[0]atom_positions = []aatype = []atom_mask = []residue_index = []chain_ids = []b_factors = []for chain in model:if chain_id is not None and chain.id != chain_id:continuefor res in chain:if res.id[2] != ' ':raise ValueError(f'PDB/mmCIF contains an insertion code at chain {chain.id} and'f' residue index {res.id[1]}. These are not supported.')res_shortname = residue_constants.restype_3to1.get(res.resname, 'X')restype_idx = residue_constants.restype_order.get(res_shortname, residue_constants.restype_num)pos = np.zeros((residue_constants.atom_type_num, 3))mask = np.zeros((residue_constants.atom_type_num,))res_b_factors = np.zeros((residue_constants.atom_type_num,))for atom in res:if atom.name not in residue_constants.atom_types:
http://www.dtcms.com/wzjs/499601.html

相关文章:

  • wordpress百度云cdn郑州seo优化公司
  • 芜湖 网站建设百度的网址是什么呢
  • 温州做企业网站阿森纳英超积分
  • 有机蔬菜网站是如何建设互联网域名注册查询
  • 论坛类网站建设福州关键词快速排名
  • 做招牌的网站云南seo
  • 个人网站设计论文道客巴巴百度贴吧网页版入口
  • 建app需要多少钱天津seo实战培训
  • 在线网站做气泡图关键词在线挖掘网站
  • 合肥专业网站建设公司哪家好广州最新疫情最新消息
  • 一起做网店网站官方郑州高端网站建设
  • 广州省建设监理协会网站市场推广方案怎么做
  • 做旅游网站用什么颜色b2b网站免费推广
  • 淘乐惠网站怎么做河南公司网站建设
  • 酒店设计网站推荐泰安做百度推广的公司
  • 专业网站建设收费如何优化搜索关键词
  • 广州做网站如何舆情监测软件
  • 建网站的优势aso关键词搜索优化
  • 信息网站建设网站指数查询
  • 动态ppt模板下载免费完整版seo学校培训班
  • 兴仁县城乡建设局网站成都网站建设方案优化
  • 海阳网站建设提交链接
  • 网站开发图网络舆情监测中心
  • 响应式建网站shodan搜索引擎
  • 新闻网站建设方案书怎么写关键词快速排名平台
  • 建立什么网站可以赚钱线上推广平台
  • 做 英语试题的网站清远今日头条新闻
  • 网站管理后台 模板凡科网建站系统源码
  • 胶南市城乡建设局网站收录优美图片手机版
  • 分销网站方案搜索引擎关键词seo优化公司