simonduerr commited on
Commit
2cd9afa
1 Parent(s): 9d0e9cd

Update rosettafold_pymol.py

Browse files
Files changed (1) hide show
  1. rosettafold_pymol.py +11 -11
rosettafold_pymol.py CHANGED
@@ -142,7 +142,7 @@ def query_rosettafold2(
142
  url = "http://localhost:7860"
143
  except requests.exceptions.ConnectionError:
144
  url = "https://simonduerr-rosettafold2.hf.space"
145
-
146
  response = requests.post(
147
  url + "/run/rosettafold2/",
148
  json={
@@ -151,16 +151,16 @@ def query_rosettafold2(
151
  jobname, # str in 'jobname' Textbox component
152
  sym, # str in 'sym' Textbox component
153
  order, # int | float (numeric value between 1 and 12) in 'order' Slider component
154
- "diag", # str (Option from: ['diag', 'repeat', 'default']) in 'msa_concat_mode' Dropdown component
155
- "single_sequence", # str (Option from: ['mmseqs2', 'single_sequence', 'custom_a3m']) in 'msa_method' Dropdown component
156
- "unpaired_paired", # str (Option from: ['unpaired_paired', 'paired', 'unpaired']) in 'pair_mode' Dropdown component
157
- False, # bool in 'collapse_identical' Checkbox component
158
- 6, # int (Option from: ['0', '1', '3', '6', '12', '24']) in 'num_recycles' Dropdown component
159
- False, # bool in 'use_mlm' Checkbox component
160
- False, # bool in 'use_dropout' Checkbox component
161
- 16, # int (Option from: ['16', '32', '64', '128', '256', '512']) in 'max_msa' Dropdown component
162
- 0, # int in 'random_seed' Textbox component
163
- 1, # int (Option from: ['1', '2', '4', '8', '16', '32']) in 'num_models' Dropdown component
164
  ]
165
  },
166
  ).json()
 
142
  url = "http://localhost:7860"
143
  except requests.exceptions.ConnectionError:
144
  url = "https://simonduerr-rosettafold2.hf.space"
145
+ print(f'querying {url}')
146
  response = requests.post(
147
  url + "/run/rosettafold2/",
148
  json={
 
151
  jobname, # str in 'jobname' Textbox component
152
  sym, # str in 'sym' Textbox component
153
  order, # int | float (numeric value between 1 and 12) in 'order' Slider component
154
+ msa_concat_mode, # str (Option from: ['diag', 'repeat', 'default']) in 'msa_concat_mode' Dropdown component
155
+ msa_method, # str (Option from: ['mmseqs2', 'single_sequence', 'custom_a3m']) in 'msa_method' Dropdown component
156
+ pair_mode, # str (Option from: ['unpaired_paired', 'paired', 'unpaired']) in 'pair_mode' Dropdown component
157
+ collapse_identical, # bool in 'collapse_identical' Checkbox component
158
+ num_recycles, # int (Option from: ['0', '1', '3', '6', '12', '24']) in 'num_recycles' Dropdown component
159
+ use_mlm, # bool in 'use_mlm' Checkbox component
160
+ use_dropout, # bool in 'use_dropout' Checkbox component
161
+ max_msa, # int (Option from: ['16', '32', '64', '128', '256', '512']) in 'max_msa' Dropdown component
162
+ random_seed, # int in 'random_seed' Textbox component
163
+ num_models, # int (Option from: ['1', '2', '4', '8', '16', '32']) in 'num_models' Dropdown component
164
  ]
165
  },
166
  ).json()