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

赣州建设企业网站分析网站

赣州建设企业网站,分析网站,营销型网站的运营配套不包括,wordpress 个人 模板AlphaFold3 msa_pairing模块的pair_sequences函数的核心目标是基于 MSA(多序列比对)中的物种信息,在多条链之间建立 MSA 配对索引,从而帮助 AlphaFold3 捕捉共进化信息,提升蛋白复合物预测的准确性。函数pair_sequences 通过调用 _make_msa_df、 _create_species_dict 以…

AlphaFold3 msa_pairing模块的pair_sequences函数的核心目标是基于 MSA(多序列比对)中的物种信息,在多条链之间建立 MSA 配对索引,从而帮助 AlphaFold3 捕捉共进化信息,提升蛋白复合物预测的准确性。函数pair_sequences 通过调用 _make_msa_df、  _create_species_dict  以及_match_rows_by_sequence_similarity实现其功能。

源代码:

def pair_sequences(examples: List[Mapping[str, np.ndarray]],
) -> Dict[int, np.ndarray]:"""Returns indices for paired MSA sequences across chains."""num_examples = len(examples)all_chain_species_dict = []common_species = set()for chain_features in examples:msa_df = _make_msa_df(chain_features)species_dict = _create_species_dict(msa_df)all_chain_species_dict.append(species_dict)common_species.update(set(species_dict))common_species = sorted(common_species)common_species.remove(b'')  # Remove target sequence species.all_paired_msa_rows = [np.zeros(len(examples), int)]all_paired_msa_rows_dict = {k: [] for k in range(num_examples)}all_paired_msa_rows_dict[num_examples] = [np.zeros(len(examples), int)]for species in common_species:if not species:continuethis_species_msa_dfs = []species_dfs_present = 0for species_dict in all_chain_species_dict:if species in species_dict:this_species_msa_dfs.append(species_dict[species])species_dfs_present += 1else:this_species_msa_dfs.append(None)# Skip species that are present in only one chain.if species_dfs_present <= 1:continueif np.any(np.array([len(species_df) for species_df inthis_species_msa_dfs ifisinstance(species_df, pd.DataFrame)]) > 600):continuepaired_msa_rows = _match_rows_by_sequence_similarity(this_species_msa_dfs)all_paired_msa_rows.extend(paired_msa_rows)all_paired_msa_rows_dict[species_dfs_present].extend(paired_msa_rows)all_paired_msa_rows_dict = {num_examples: np.array(paired_msa_rows) fornum_examples, paired_msa_rows in all_paired_msa_rows_dict.items()}return all_paired_msa_rows_dict

代码解读:

函数输入
def pair_sequences(examples: List[Mapping[str, np.ndarray]]) -> Dict[int, np.ndarray]

examples:包含多条链的 MSA 信息,每个元素是一个字典,代表一条蛋白链的 MSA 相关特征。

  • 例如,examples[0] 可能对应链 A 的 MSA 特征,examples[1] 可能对应链 B 的 MSA 特征。
代码执行过程
1️⃣ 提取所有链的 MSA 并构建物种索引
num_examples = len(examples)all_chain_species_dict = []
common_species = set()
for chain_features in examples:
http://www.dtcms.com/wzjs/6040.html

相关文章:

  • 滴滴出行的网站是哪家公司做的网络营销策划内容
  • 用excel做网站日志分析2024年3月份病毒会爆发吗
  • 做h5的网站页面最近新闻头条最新消息
  • 高校网站建设需求分析青岛seo网站管理
  • 网站建设必须要在阿里云备案吗新乡seo优化
  • 台州企业做网站近期新闻大事
  • 太原网站建设方案服务网站上不去首页seo要怎么办
  • 最新疫情防控政策百度关键词优化推广
  • 宝安建网站怎么免费创建个人网站
  • 17网站一起做网店登录seo公司推荐推广平台
  • 手机网站seo做网络营销推广的公司
  • 创业网站建设怎么样自学seo大概需要多久
  • 备案的网站建设书是什么意思北京已感染上千万人
  • 网上建设银行网站开封网络推广哪家好
  • 做软件常用的网站温州seo优化公司
  • 鹿城做网站成都seo优化推广
  • 昆明网站关键字优化优化设计全部答案
  • 网站建设行业前景承德seo
  • 唯美个人网站欣赏百度人气榜
  • linux建设网站短视频培训要多少学费
  • 桥西企业做网站2022拉新推广平台
  • 外贸网站如何做推广多少钱seo顾问张智伟
  • 做商品网站数据库有哪些内容百度收录批量提交入口
  • 做阿拉伯语的网站直播营销的优势有哪些
  • 什么网站建设最简单广州疫情最新动态
  • 新手怎么做网站打理免费找客户软件
  • 免费软件下载破解版推广优化排名
  • 免费小程序源码泰州百度seo公司
  • 做网站客户要先看效果后付款网站收录服务
  • 惠州做网站广告seo常见优化技术