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

网站 建设文档免费承接网站建设

网站 建设文档,免费承接网站建设,wordpress前端编辑器,做好史志网站建设AlphaFold3 protein_dataset模块 ProteinDataset 类 _get_masked_sequence 方法属于作用是为需要预测的残基生成掩码。该掩码以二进制张量形式呈现,其中 1 代表需要预测的部分,0 代表其他部分。此方法会依据多个参数来选定要掩码的残基,这些参数包含 mask_whole_chains、mas…

AlphaFold3 protein_dataset模块 ProteinDataset 类 _get_masked_sequence 方法属于作用是为需要预测的残基生成掩码。该掩码以二进制张量形式呈现,其中 1 代表需要预测的部分,0 代表其他部分。此方法会依据多个参数来选定要掩码的残基,这些参数包含 mask_whole_chainsmask_fraclower_limitupper_limitmask_sequential 以及 force_binding_sites_frac 等。

源代码:

    def _get_masked_sequence(self,data,):"""Get the mask for the residues that need to be predicted.Depending on the parameters the residues are selected as follows:- if `mask_whole_chains` is `True`, the whole chain is masked- if `mask_frac` is given, the number of residues to mask is `mask_frac` times the length of the chain,- otherwise, the number of residues to mask is sampled uniformly from the range [`lower_limit`, `upper_limit`].If `mask_sequential` is `True`, the residues are masked based on the order in the sequence, otherwise aspherical mask is applied based on the coordinates.If `force_binding_sites_frac` > 0 and `mask_whole_chains` is `False`, in the fraction of cases where a chainfrom a polymer is sampled, the center of the masked region will be forced to be in a binding site.Parameters----------data : dictan entry generated by `ProteinDataset`Returns-------chain_M : torch.Tensora `(B, L)` shaped binary tensor where 1 denotes the part that needs to be predicted and0 is everything else"""if "cdr" in data and "cdr_id" in data:chain_M = torch.zeros_like(data["cdr"])if self.mask_all_cdrs:chain_M = data["cdr"] != CDR_REVERSE["-"]else:chain_M = data["cdr"] == data["cdr_id"]else:chain_M = torch.zeros_like(data["S"])chain_index = data["chain_id"]chain_bool = data["chain_encoding_all"] == chain_indexif self.mask_whole_chains:chain_M[chain_bool] = 1else:chains = torch.unique(data["chain_encoding_all"])chain_start = torch.where(chain_bool)[0][0]chain = data["X"][chain_bool]res_i = Noneinterface = []non_masked_interface = []if len(chains) > 1 and self.force_binding_sites_frac > 0:if random.uniform(0, 1) <= self.force_binding_sites_frac:X_copy = data["X"]i_indices = (chain_bool == 0).nonzero().flatten()  # global
http://www.dtcms.com/a/604491.html

相关文章:

  • 推广赚钱平台有哪些北京网站优化效果
  • 对于做房产做网站的感悟做网站首页图片素材
  • wordpress 企业站模版wordpress文章翻页
  • 广州做网站公司培训广州推广渠道
  • 自己电脑做网站需要什么设备如何做类似千图网的网站
  • 齐齐哈尔做网站公司德阳住房和城乡建设厅网站
  • 网站换主推关键词会怎么样在centos上搭建wordpress
  • 网站开发 验收模板photoshop网页制作视频教程
  • 市场调查 网站建设首饰行业网站建设策划
  • 网上做调查赚钱的网站怎样做网站别人能访问
  • 山东德州做网站软件商店最新版下载
  • 建筑八大员证报考网站做网站需要交税
  • 做电商网站都需要学什么条件外贸推广公司
  • 网站开发哪里做网站要在vs安装什么
  • 广东网站设计工具加工订单网
  • 如何创建网站的步骤山东聊城建设学校网站
  • 生物类培养基网站建设 中企动力wordpress绿色两栏响应式主题
  • 做网站的公司 洛阳天津餐饮团购网站建设
  • html5创意网站销售网站建设公司
  • 网站建设服务yisinuo东圃手机网站建设
  • 东营网站的优化linux系统网站架构
  • 移动网站建设流程一个企业网站如何能放到互联网上 vps
  • 手机网站模板 商城google 网站营销
  • 网站定制公司wordpress 扫码支付宝
  • 网站首页制作代码如何卸载和安装wordpress
  • 上传商品的网站网站建设和网页设计是不是一样
  • 哪个网站推广产品好济宁城乡住房建设网站
  • 自己做网站的流程视频教程广州网络推广万企在线
  • 游戏网站开发难度网站正在建设中 源码下载
  • 网站主页被做跳转深圳活动策划设计机构