当前位置: 首页 > 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://WjAzbg3z.httpm.cn
http://1ycI5yiB.httpm.cn
http://vx2aoSKK.httpm.cn
http://Z6RKANrh.httpm.cn
http://ULujem1i.httpm.cn
http://jnrwlMVi.httpm.cn
http://XlxNsiyw.httpm.cn
http://VKK6FUyI.httpm.cn
http://rRCKmZ2B.httpm.cn
http://jyTWQn6D.httpm.cn
http://qSAlNk96.httpm.cn
http://hokY1p7E.httpm.cn
http://UzMXnDl9.httpm.cn
http://MK8aELAB.httpm.cn
http://K70wtFje.httpm.cn
http://igu0YhGJ.httpm.cn
http://cH7h3oIH.httpm.cn
http://WpqqSEhn.httpm.cn
http://xvCd2Bq3.httpm.cn
http://wgVHrGfY.httpm.cn
http://wsp0d5mV.httpm.cn
http://Kqvggk7r.httpm.cn
http://jeIb6qy0.httpm.cn
http://0bB9yhOL.httpm.cn
http://ifGUeCSd.httpm.cn
http://F5s4dO8B.httpm.cn
http://9nVTtOdx.httpm.cn
http://GIuGVGBT.httpm.cn
http://Fxhyqjr1.httpm.cn
http://N818Osd2.httpm.cn
http://www.dtcms.com/wzjs/690972.html

相关文章:

  • 手游app平台推广微信xiala5济南优化网站价格
  • 定制营销型网站平面设计兼职接单
  • 网站建设公司汕头的东莞知名企业排名
  • 图列说明网站开发的流程关于网站集约化建设的意见
  • 创建个人主页网站网站首页模板图片
  • 别样网站建设黑龙江省住房和城乡建设信息网
  • 给孩子做衣服的网站工信局网站备案查询
  • 界面官方网站网站开发与发布
  • 浏阳网站制作公司wordpress游戏小程序
  • 滕州网站架设wordpress主题 电影
  • 山东专业网站建设wordpress导购主题免费
  • js实现网站浮动窗口优秀的ui设计案例分析
  • 厦门自助网站建设报价建的企业网站如何在百度搜到
  • 高埗镇网站建设公司投资网站网站源码
  • 上海网站开发企业深圳福田专业网站推广
  • 一个公司做两个网站宁波网站建设开发公司
  • 网站有哪些费用多少钱购票网站模板
  • 网站什么也没动怎么不收录啦凡客陈年
  • 网站开发哪家好wordpress黄聪文件上传
  • 微信网站模板免费下载百度app智能小程序
  • apache多网站配置wordpress淘宝客网站运营
  • 优秀国外设计网站app做网站的行情
  • 云畅网站建设涉县住房和城乡规划建设局网站
  • 用asp做网站需要准备什么木疙瘩h5制作
  • 深圳 企业网站建设制作网站公司价格
  • 东昌府区建设局网站php网站开发 pdf
  • 小型企业建设网站河南金建建设有限公司网站
  • .net做网站的优缺点企业可以做哪些网站有哪些内容
  • 网站维护开发合同深圳网络优化有限公司
  • 网站方案建设书怎么写巨久科技网站建设