Skip to content

Commit 9d47732

Browse files
committed
feat: add fold input example
1 parent 552ef95 commit 9d47732

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

examples/science/af3-slurm/af3-slurm.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ vars:
129129
- type: data
130130
destination: "/tmp/slurm_client.py.j2"
131131
source: $(ghpc_stage("examples/simple_ipynb_launcher/adm/slurm_client.py.j2"))
132+
- type: data
133+
destination: "/tmp/fold_input_example.json"
134+
source: $(ghpc_stage("examples/simple_ipynb_launcher/adm/fold_input_example.json"))
132135
- type: data
133136
destination: "/tmp/visualization.py"
134137
source: $(ghpc_stage("examples/simple_ipynb_launcher/adm/visualization.py"))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name": "2PV7", "sequences": [{"protein": {"id": ["A", "B"], "sequence": "GMRESYANENQFGFKTINSDIHKIVIVGGYGKLGGLFARYLRASGYPISILDREDWAVAESILANADVVIVSVPINLTLETIERLKPYLTENMLLADLTSVKREPLAKMLEVHTGAVLGLHPMFGADIASMAKQVVVRCDGRFPERYEWLLEQIQIWGAKIYQTNATEHDHNMTYIQALRHFSTFANGLHLSKQPINLANLLALSSPIYRLELAMIGRLFAQDAELYADIIMDKSENLAVIETLKQTYDEALTFFENNDRQGFIDAFHKVRDWFGDYSEQFLKESRQLLQQANDLKQG"}}], "modelSeeds": [1], "dialect": "alphafold3", "version": 1}

examples/science/af3-slurm/examples/simple_ipynb_launcher/adm/ipynb-setup-config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@
106106
register: copy_visualization
107107
ignore_errors: true
108108

109+
- name: Copy fold_input_example.json
110+
ansible.builtin.copy:
111+
src: /tmp/fold_input_example.json
112+
dest: "{{ ipynb_setup_folder }}/fold_input_example.json"
113+
register: copy_fold_input_example
114+
115+
ignore_errors: true
109116
- name: Render slurm_client.py from template locally
110117
ansible.builtin.template:
111118
src: /tmp/slurm_client.py.j2
@@ -204,6 +211,7 @@
204211
{'name': 'notebook-requirements.txt', 'result': copy_requirements},
205212
{'name': 'visualization.py', 'result': copy_visualization},
206213
{'name': 'slurm_client.py', 'result': copy_slurm_client},
214+
{'name': 'fold_input_example.json', 'result': copy_fold_input_example},
207215
{'name': 'slurm-rest-api-notebook.ipynb', 'result': copy_notebook},
208216
{'name': '__init__.py', 'result': copy_init},
209217
{'name': 'ipynb-upload-config.yml', 'result': copy_ipynb_upload_config},

examples/science/af3-slurm/examples/simple_ipynb_launcher/adm/ipynb-upload-config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@
6565
register: upload_notebook
6666
ignore_errors: true
6767

68+
- name: Upload fold_input_example.json to GCS
69+
ansible.builtin.command:
70+
cmd: gcloud storage cp {{ ipynb_setup_folder }}/fold_input_example.json gs://{{ af3ipynb_bucket }}/fold_input_example.json
71+
register: upload_fold_input_example
72+
ignore_errors: true
73+
6874
- name: Upload slurm_info.json to GCS
6975
ansible.builtin.command:
7076
cmd: gcloud storage cp {{ slurm_rest_info_path }} gs://{{ af3ipynb_bucket }}/libs/slurm_info.json
@@ -84,6 +90,7 @@
8490
{'name': 'slurm_client.py', 'result': upload_slurm_client},
8591
{'name': '__init__.py', 'result': upload_init},
8692
{'name': 'slurm-rest-api-notebook.ipynb', 'result': upload_notebook},
93+
{'name': 'fold_input_example.json', 'result': upload_fold_input_example},
8794
{'name': 'slurm_info.json', 'result': upload_slurm_info},
8895
] | selectattr('result.failed', 'defined') | selectattr('result.failed') | list
8996
}}

0 commit comments

Comments
 (0)