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

两个人做类似的梦 网站360网站收录

两个人做类似的梦 网站,360网站收录,想做一个公司的网站去哪可以做,庆阳网站设计AF3 rigid_utils模块Rigid类make_transform_from_reference 方法其实是实现从全局坐标到局部坐标的变换,输入的为氨基酸残基的 N(氮原子)、CA(α-碳原子)、C(羧基碳原子)三点坐标,返回一个全局坐标到局部坐标的变rigid实例。make_transform_from_reference 和 from_3_p…

AF3 rigid_utils模块Rigid类make_transform_from_reference 方法其实是实现从全局坐标到局部坐标的变换,输入的为氨基酸残基的 N(氮原子)、CA(α-碳原子)、C(羧基碳原子)三点坐标,返回一个全局坐标到局部坐标的变rigid实例。make_transform_from_reference 和 from_3_points方法都是返回一个到参考坐标系的变换rigid实例,但实现逻辑和返回值不一样。

源代码:

    @staticmethoddef make_transform_from_reference(n_xyz, ca_xyz, c_xyz, eps=1e-20):"""Returns a transformation object from reference coordinates.Note that this method does not take care of symmetries. If you provide the atom positions in the non-standard way, the N atom will end up not at [-0.527250, 1.359329, 0.0] but instead at [-0.527250, -1.359329, 0.0]. You need to take care of such cases in your code.Args:n_xyz: A [*, 3] tensor of nitrogen xyz coordinates.ca_xyz: A [*, 3] tensor of carbon alpha xyz coordinates.c_xyz: A [*, 3] tensor of carbon xyz coordinates.Returns:A transformation object. After applying the translation and rotation to the reference backbone, the coordinates will approximately equal to the input coordinates."""    translation = -1 * ca_xyzn_xyz = n_xyz + translationc_xyz = c_xyz + translationc_x, c_y, c_z = [c_xyz[..., i] for i in range(3)]norm = torch.sqrt(eps + c_x ** 2 + c_y ** 2)sin_c1 = -c_y / normcos_c1 = c_x / normzeros = sin_c1.new_zeros(sin_c1.shape)ones = sin_c1.new_ones(sin_c1.shape)c1_rots = sin_c1.new_zeros((*sin_c1.shape, 3, 3))c1_rots[..., 0, 0] = cos_c1c1_rots[..., 0, 1] = -1 * sin_c1c1_rots[..., 1, 0] = sin_c1c1_rots[..., 1, 1] = cos_c1c1_rots[..., 2, 2] = 1norm = torch.sqrt(eps + c_x ** 2 + c_y ** 2 + c_z ** 2)sin_c2 = c_z / normcos_c2 = torch.sqrt(c_x ** 2 + c_y ** 2) / normc2_rots = sin_c2.new_zeros((*sin_c2.shape, 3, 3))c2_rots[..., 0, 0] = cos_c2c2_rots[..., 0, 2] = sin_c2c2_rots[..., 1, 1] = 1c2_rots[..., 2, 0] = -1 * sin_c2c2_rots[..., 2, 2] = cos_c2c_rots = rot_matmul(c2_rots, c1_rots)n_xyz = rot_vec_mul(c_rots, n_xyz)_, n_y, n_z = [n_xyz[..., i] for i in range(3)]norm = torch.sqrt(eps + n_y ** 2 + n_z ** 2)sin_n = -n_z / normcos_n = n_y / normn_rots = sin_c2.new_zeros((*sin_c2.shape, 3, 3))n_rots[..., 0, 0] = 1n_rots[..., 1, 1] = cos_n
http://www.dtcms.com/wzjs/231013.html

相关文章:

  • 做网站教程免费网站seo主要是做什么的
  • 网站建设工作室怎么开百度竞价运营
  • 学校网站建设主要成绩发布友情链接
  • 简单的手机网站模板下载最佳磁力搜索引擎
  • 商城类网站建设报价想做电商怎么入手
  • 网络营销推广的目的是什么网站seo优化方案
  • 天津做网站.都找津坤科技微信软文
  • 质量好网站建设公司竞价推广价格
  • 网站分享对联广告西安网站关键词推广
  • 旅行社网站建设规划的内容seo网站自动推广
  • 厦门seo网站关键词优推广荥阳seo推广
  • 免费推广店铺的网站宠物美容师宠物美容培训学校
  • 使用oss做静态网站qq关键词排名优化
  • 龙岩网站建设公司市场调研与分析
  • 无锡网站建设技术做一个app软件大概要多少钱
  • 北控京奥建设有限公司网站网络营销师报名官网
  • vs哪个版本做网站好谷歌竞价推广教程
  • 怎么制作一个个人网站快速网站搭建
  • ps 制作网站百度推广是什么工作
  • 国际网站空间市场调研报告范文3000字
  • 聊城网站建设潍坊微信推广引流加精准客户
  • 姑苏区住房建设局网站代发百度帖子包收录排名
  • 做室内设计的网站有哪些seo搜索引擎优化岗位要求
  • 金华疫情最新消息seo交流
  • web网站开发毕业论文企业培训课程名称大全
  • 如何手机做网站朔州网站seo
  • 做电影网站违法吗优化设计单元测试卷
  • 做网站一般什么配置关键词优化 搜索引擎
  • 网站开发资金来源网络营销案例成功案例
  • 永定路网站建设小网站搜什么关键词好