欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 新车 > AF3 OpenFoldMultimerDataset类解读

AF3 OpenFoldMultimerDataset类解读

2025/4/11 15:39:16 来源:https://blog.csdn.net/qq_27390023/article/details/146988028  浏览:    关键词:AF3 OpenFoldMultimerDataset类解读

AlphaFold3 data_modules 模块的 OpenFoldMultimerDataset 类是 OpenFoldDataset 类的子类,专门用于 多链蛋白质(Multimer) 数据集的训练。它通过引入 AlphaFold Multimer 论文 中描述的过滤步骤,来实现多链蛋白质的训练。这个类扩展了父类的功能,特别是为了处理多链蛋白质的数据预处理和样本过滤。

源代码:

class OpenFoldMultimerDataset(OpenFoldDataset):"""Create a torch Dataset object for multimer training and add filtering steps described in AlphaFold Multimer's paper:https://www.biorxiv.org/content/10.1101/2021.10.04.463034v2.full.pdf Supplementary section 7.1 """def __init__(self,datasets: Sequence[OpenFoldSingleMultimerDataset],probabilities: Sequence[float],epoch_len: int,generator: torch.Generator = None,_roll_at_init: bool = True):super(OpenFoldMultimerDataset, self).__init__(datasets=datasets,probabilities=probabilities,epoch_len=epoch_len,generator=generator,_roll_at_init=_roll_at_init)@staticmethoddef deterministic_train_filter(cache_entry: Any,is_distillation: bool,max_resolution: float = 9.,max_single_aa_prop: float = 0.8,minimum_number_of_residues: int = 200,*args, **kwargs) -> bool:"""Implement multimer training filtering criteria described inhttps://www.biorxiv.org/content/10.1101/2021.10.04.463034v2.full.pdf Supplementary section 7.1"""resolution = cache_entry.get("resolution", None)seqs = cache_entry["seqs"]return all([resolution_filter(resolution=resolution,max_resolution=max_resolution),aa_count_filter(seqs=seqs,max_single_aa_prop=max_single_aa_prop),(not is_distillation or all_seq_len_filter(seqs=seqs,

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词