-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_data.py
More file actions
31 lines (26 loc) · 1.23 KB
/
build_data.py
File metadata and controls
31 lines (26 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 2024 DeepMind Technologies Limited
#
# AlphaFold 3 source code is licensed under CC BY-NC-SA 4.0. To view a copy of
# this license, visit https://creativecommons.org/licenses/by-nc-sa/4.0/
#
# To request access to the AlphaFold 3 model parameters, follow the process set
# out at https://github.com/google-deepmind/alphafold3. You may only use these
# if received directly from Google. Use is subject to terms of use available at
# https://github.com/google-deepmind/alphafold3/blob/main/WEIGHTS_TERMS_OF_USE.md
"""Script for building intermediate data."""
from importlib import resources
import alphafold3.constants.converters
from alphafold3.constants.converters import ccd_pickle_gen
from alphafold3.constants.converters import chemical_component_sets_gen
import share.libcifpp
def build_data():
cif_path = resources.files(share.libcifpp).joinpath('components.cif')
out_root = resources.files(alphafold3.constants.converters)
ccd_pickle_path = out_root.joinpath('ccd.pickle')
chemical_component_sets_pickle_path = out_root.joinpath(
'chemical_component_sets.pickle'
)
ccd_pickle_gen.main(['', str(cif_path), str(ccd_pickle_path)])
chemical_component_sets_gen.main(
['', str(chemical_component_sets_pickle_path)]
)