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

网站搭建好了怎么上到服务器长春网站制作系统

网站搭建好了怎么上到服务器,长春网站制作系统,中国建造师官方网站,博物馆网站建设依据AlphaFold3 data_modules 模块的 OpenFoldSingleMultimerDataset类继承自torch.utils.data.Dataset,用于处理多肽复合物(Multimer) 数据,提供数据加载、特征提取、模板匹配等功能。该类支持 训练(train)、验证(eval)、推理(predict) 三种模式,并在__getitem__ 方法中…

AlphaFold3 data_modules 模块的 OpenFoldSingleMultimerDataset类继承自torch.utils.data.Dataset,用于处理多肽复合物(Multimer) 数据,提供数据加载、特征提取、模板匹配等功能。该类支持 训练(train)、验证(eval)、推理(predict) 三种模式,并在__getitem__ 方法中读取 .cif 结构文件、MSA 数据、模板特征,最终返回 标准化的蛋白质特征张量。

源代码:

class OpenFoldSingleMultimerDataset(torch.utils.data.Dataset):def __init__(self,data_dir: str,alignment_dir: str,template_mmcif_dir: str,max_template_date: str,config: mlc.ConfigDict,mmcif_data_cache_path: Optional[str] = None,kalign_binary_path: str = '/usr/bin/kalign',max_template_hits: int = 4,obsolete_pdbs_file_path: Optional[str] = None,template_release_dates_cache_path: Optional[str] = None,shuffle_top_k_prefiltered: Optional[int] = None,treat_pdb_as_distillation: bool = True,filter_path: Optional[str] = None,mode: str = "train",alignment_index: Optional[Any] = None,_output_raw: bool = False,_structure_index: Optional[Any] = None,):"""This class check each individual PDB ID and return its chain(s) features/ground truth Args:data_dir:A path to a directory containing mmCIF files (in trainmode) or FASTA files (in inference mode).alignment_dir:A path to a directory containing only data in the format output by an AlignmentRunner (defined in openfold.features.alignment_runner).I.e. a directory of directories named {PDB_ID}_{CHAIN_ID}or simply {PDB_ID}, each containing .a3m, .sto, and .hhrfiles.template_mmcif_dir:Path to a directory containing template mmCIF files.config:A dataset config object. See openfold.configmmcif_data_cache_path:Path to cache of all mmcifs files generated byscripts/generate_mmcif_cache.py It should be a json file which recordswhat PDB ID contains which chain(s)kalign_binary_path:Path to kalign binary.max_template_hits:An upper bound on how many templates are considered. Duringtraining, the templates ultimately used are subsampledfrom this total quantity.template_release_dates_cache_path:Path to the output of scripts/generate_mmcif_cache.obsolete_pdbs_file_path:Path to the file containing replacements for obsolete PDBs.shuffle_top_k_prefiltered:Whether to uniformly shuffle the top k template hits beforeparsing max_template_hits of them. Can be used toapproximate DeepMind's training-time template subsamplingscheme much more performantly.treat_pdb_as_distillation:Whether to assume that .pdb files in the data_dir are fromthe self-distillation set (and should be subjected tospecial distillation set preprocessing steps).mode:"train", "val", or "predict""""super(OpenFoldSingleMultimerDataset, self).__init__()self.data_dir = data_dirself.mmcif_data_cache_path = mmcif_data_cache_pathself.mmcif_data_cache = Noneif self.mmcif_data_cache_path is not None:with open(self.mmcif_data_cache_path, "r") as infile:self.mmcif_data_cache = json.load(infile)assert isinstance(self.mmcif_data_cache, dict)self.alignment_dir = alignment_dirself.config = configself.treat_pdb_as_distillation = treat_pdb_as_distillationself.mode = modeself.alignment_index = alignment_indexself._output_raw = _output_rawself._structure_index = _structure_indexself.supported_exts = [".cif", ".core", ".pdb"]valid_modes = ["train", "eval", "predict"]if mode not in valid_modes:raise ValueError(f'mode must be one of {valid_modes}')if template_release_dates_cache_path is None:logging.warning("Template release dates cache does not exist. Remember to run ""scripts/generate_mmcif_cache.py before running OpenFold")if self.mmcif_data_cache_path is not None:self._mmcifs = list(self.mmcif_data_cache.keys())elif self.alignment_index is not None:self._mmcifs = [i.split("_")[0] for i in list(alignment_index.keys())]elif self.alignment_dir is not None:self._mmcifs = [i.split("_")[0] for i in os.listdir(self.alignment_dir)]else:raise ValueError("You must provide at least one of the mmcif_data_cache or alignment_dir")if filter_path is not None:with open(filter_path, "r") as f:mmcifs_to_include = set([l.strip() for l in f.readlines()])self._mmcifs = [m for m in self._mmcifs if m in mmcifs_to_include]self._mmcif_id_to_idx_dict = {mmcif: i for i, mmcif in enumerate(self._mmcifs)}template_featurizer = templates.HmmsearchHitFeaturizer(mmcif_dir=template_mmcif_dir,
http://www.dtcms.com/wzjs/14645.html

相关文章:

  • 网站建设管理系统怎么推广一个网站
  • 网站构建器营销计划
  • 做网站推广选择什么最好千锋教育北京校区
  • 深圳国贸网站建设电工培训学校
  • 上海网站建设乐云seo模板中心北京网站外包
  • 医院网站做竞价需要注意广告法网站免费网站免费优化优化
  • 中企动力官做网站怎么样竞价推广账户托管服务
  • 专做化妆品网站郑州关键词排名外包
  • 哪种语言网站建设锦州网站seo
  • 全民推广知乎seo
  • 做一个网站 多少钱专业的网站优化公司
  • 网站建设常规尺寸苏州网站seo服务
  • 学做网站需要什么舆情分析
  • 网站开发企业怎么建企业网站
  • 流动党员网站建设目标泰安百度推广电话
  • 北京网站建设最便宜的公司哪家好免费制作网页的网站
  • 政府门户网站怎么做友情链接作用
  • 快速网站开发工具seo外包公司兴田德润
  • 创办免费企业网站百度竞价登录入口
  • 网站图片左右滚动网络广告联盟
  • 高端建站网站为什么sem的工资都不高
  • 网站开发实例社区搜索app下载安装
  • 网站百度知道怎么做推广福州百度seo排名
  • 武汉市新洲区城乡建设局网站磁力吧
  • 太平洋建设集团有限公司网站丈哥seo博客
  • 校园门户网站 建设方案互动营销公司
  • cookies因预料之外的输出被阻止 wordpress泰安seo排名
  • 企业营销型网站策划书百度图像搜索
  • 番禺建设网站外包推广方案框架
  • 政府网站建设发展规划搜索引擎推广的常见形式有