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

网站建设预算申请cnzz数据统计

网站建设预算申请,cnzz数据统计,如何恢复网站,新加坡做网站的价格通过summarize_clusters函数构建每个聚类的protein[cluster_profile]和protein[cluster_deletion_mean]特征。目的是把extra_msa信息反映到msa中。 集成函数数据处理流程: sample_msa ->make_masked_msa -> nearest_neighbor_clusters -> summarize_clu…

通过summarize_clusters函数构建每个聚类的protein['cluster_profile']和protein['cluster_deletion_mean']特征。目的是把extra_msa信息反映到msa中。
 

集成函数数据处理流程: sample_msa ->make_masked_msa -> nearest_neighbor_clusters -> summarize_clusters-> ...
 

主要函数 tf.math.unsorted_segment_sum:用于沿指定轴对数据进行分段求和。
tf.math.unsorted_segment_sum(data, segment_ids, num_segments, name=None)

  • data: 输入张量,包含待求和的数据。
  • segment_ids: 用于指定每个元素属于哪个段的一维整数张量。
  • num_segments: 整数,表示分段的总数。
  • name: 可选参数,用于指定操作的名称。
import tensorflow as tf
import pickledef shape_list(x):"""Return list of dimensions of a tensor, statically where possible.Like `x.shape.as_list()` but with tensors instead of `None`s.Args:x: A tensor.Returns:A list with length equal to the rank of the tensor. The n-th element of thelist is an integer when that dimension is statically known otherwise it isthe n-th element of `tf.shape(x)`."""x = tf.convert_to_tensor(x)# If unknown rank, return dynamic shapeif x.get_shape().dims is None:return tf.shape(x)static = x.get_shape().as_list()shape = tf.shape(x)ret = []for i in range(len(static)):dim = static[i]if dim is None:dim = shape[i]ret.append(dim)return retdef data_transforms_curry1(f):"""Supply all arguments but the first."""def fc(*args, **kwargs):return lambda x: f(x, *args, **kwargs)return fc@data_transforms_curry1
def summarize_clusters(protein):"""Produce profile and deletion_matrix_mean within each cluster."""num_seq = shape_list(protein['msa'])[0]def csum(x):return tf.math.unsorted_segment_sum(x, protein['extra_cluster_assignment'], num_seq)mask = protein['extra_msa_mask']mask_counts = 1e-6 + protein['msa_mask'] + csum(mask)  # Include center# 结果张量[num_seq, num_resi],第一行表示和msa中的0号序列是最近邻序列的extr_msa之和,以此类推msa_sum = csum(mask[:, :, None] * tf.one_hot(protein['extra_msa'], 23))msa_sum += tf.one_hot(protein['msa'], 23)  # Original sequenceprotein['cluster_profile'] = msa_sum / mask_counts[:, :, None]del msa_sum# 每条msa序列的最近邻序列的extr_msa,在不同位置deletion数统计# del_sum [num_seq, num_resi],第一行表示和msa中的0号序列是最近邻序列的extr_msa,不同位置deletion数,以此类推del_sum = csum(mask * protein['extra_deletion_matrix'])del_sum += protein['deletion_matrix']  # Original sequenceprotein['cluster_deletion_mean'] = del_sum / mask_countsdel del_sumreturn proteinwith open('Human_HBB_tensor_dict_nnclusted.pkl','rb') as f:protein = pickle.load(f)print(protein.keys())protein = summarize_clusters()(protein)
print(protein.keys())
print(protein['cluster_profile'].shape)
print(protein['cluster_profile'])print(protein['cluster_deletion_mean'].shape)
print(protein['cluster_deletion_mean'])

http://www.zhongyajixie.com/news/568.html

相关文章:

  • 烟台做网站公司哪家好nba最新交易消息
  • 重庆制作网站培训市场调研的重要性
  • 网站运维工作内容ueeshop建站费用
  • 哈尔滨营销型网站建设公司友情链接站长平台
  • 中山网站建设哪家好百度网页版电脑版
  • 策划公司口号广州seo推广培训
  • 安徽网站建设维护银徽seo
  • 安装php网站广州企业网站推广
  • 手机网站建设怎样建站模板
  • 做网站如何选主机西安seo培训机构
  • 做网站是怎么收费的是按点击率青岛网络优化费用
  • 如何利用ps做网站网络营销渠道有哪几种
  • 如何制作公司网站免费ip域名查询
  • 音频文件放到网站空间里生成链接怎么做站长之家域名查询官网
  • 泉州网站建设电话淘宝运营培训多少钱
  • 政府网站建设调查问卷目前推广软件
  • 网站文字循环滚动代码百度网站登录
  • 中国建设银行网上银行网站特点怎么制作网站二维码
  • 英语网站推广策划书深度优化
  • 服装网络营销方案策划seo优化软件
  • wordpress 基于 网店seo工作是什么意思
  • 做神马网站优化快速排推广渠道有哪些
  • 织梦手机网站教程视频教程数据统计网站有哪些
  • 做网站时链接的网页无法显示代理怎么引流推广
  • 网站开发前景西安关键词排名优化
  • 网站公司 转型排名优化seo
  • 国建设银行e路通网站申今日新闻50字
  • 政府网站集约化建设存在的问题搜索引擎简称seo
  • 字节跳动员工人数2020做网站关键词优化的公司
  • 做一个网页难不难网站产品怎么优化