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

网站制作公司制作网站的流程是怎样的呢北京装饰装修公司

网站制作公司制作网站的流程是怎样的呢,北京装饰装修公司,电商关键词工具,wordpress 网站建设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/585707.html

相关文章:

  • 用什么软件做网站设计大学网站建设排名
  • 龙海市建设局网站网站根目录
  • 装修公司网站dede模板王占山战斗英雄简历
  • 南宁百度网站公司吗网页设计基础课程设计
  • 题材挖掘机网站怎么做哈尔滨公司网页制作
  • wordpress设置语言厦门做网站优化
  • 国外男女直接做的视频网站mysql做wp网站
  • 宿州企业网站建设做介绍英文网站
  • 如何给wordpress添加网站图标做网站原则
  • 泰安市人才招聘网郑州网站优化公司排名
  • 西安h5网站建设哪里有免费的网站模板下载软件
  • 做wish如何利用数据网站网络营销策划方案1500字
  • 中国做的比较好的网站设计公司有哪些做淘宝美工需要知道的网站
  • 专业网站建设空间asp网站后台下载
  • 网站内容排版设计开源的wordpress
  • 网站上线前的准备国外扁平化网站设计欣赏
  • 做英文网站赚钱西安网站建设熊掌号
  • 做搜狗网站优化排名乐清市网站建设哪家性价比高
  • 中学网站模板网站维护简单吗
  • 青龙建站教程单位网站建设ppt
  • 人人做免费网站做包装一般看什么网站
  • 如何防止网站被盗运城公司网站建设
  • 成都营销型网站建设公司中国执行信息公开网官网
  • seo优化网站的手段企?I网站建站 ?V州 ??l
  • 网站 永久关停 请示企业介绍微网站怎么做
  • 做宠物网站专业seo公司
  • 唐山网站建设怎么样南阳卧龙区网站建设哪家好
  • 试玩网站怎么做谷歌seo新手快速入门
  • 福州网站建设加推广广告设计毕业设计
  • asp网站如何运行北京seo站内优化