@@ -39,15 +39,10 @@ def generate_CHARMM_postprocessing_files(self, env: str) -> str:
39
39
charmm_postprocessing_script += (
40
40
self ._get_CHARMM_vacuum_postprocessing_body ()
41
41
)
42
- elif env == "waterbox" :
42
+ elif env == "waterbox" or env == "complex" :
43
43
charmm_postprocessing_script += (
44
- self ._get_CHARMM_waterbox_postprocessing_body ()
44
+ self ._get_CHARMM_waterbox_postprocessing_body (env )
45
45
)
46
- elif env == "complex" :
47
- charmm_postprocessing_script += (
48
- self ._get_CHARMM_waterbox_postprocessing_body ()
49
- ) ### needs to be adapted from waterbox to complex
50
-
51
46
else :
52
47
raise NotImplementedError (f"Something went wrong with { env } ." )
53
48
@@ -60,10 +55,10 @@ def generate_CHARMM_production_files(self, env: str) -> str:
60
55
if env == "vacuum" :
61
56
charmm_production_script += self ._get_CHARMM_vacuum_production_body ()
62
57
elif env == "waterbox" :
63
- charmm_production_script += self ._get_CHARMM_waterbox_production_body ()
58
+ charmm_production_script += self ._get_CHARMM_waterbox_production_body (env )
64
59
65
60
elif env == "complex" : ###needs to be adaptet from waterbox to complex
66
- charmm_production_script += self ._get_CHARMM_waterbox_production_body ()
61
+ charmm_production_script += self ._get_CHARMM_waterbox_production_body (env )
67
62
else :
68
63
raise NotImplementedError (f"Something went wrong with { env } ." )
69
64
@@ -112,61 +107,63 @@ def build_reduced_toppar(tlc: str) -> str:
112
107
read para card unit 20 append flex
113
108
114
109
! Interface FF
115
- open read card unit 10 name ../../toppar/top_interface.rtf
116
- read rtf card unit 10 append
110
+ ! open read card unit 10 name ../../toppar/top_interface.rtf
111
+ ! read rtf card unit 10 append
117
112
118
- open read card unit 10 name ../../toppar/par_interface.prm
119
- read para card unit 10 append flex
113
+ ! open read card unit 10 name ../../toppar/par_interface.prm
114
+ ! read para card unit 10 append flex
120
115
121
- stream ../../toppar/toppar_all36_nano_lig.str
122
- stream ../../toppar/toppar_all36_nanolig_patch.str
116
+ ! stream ../../toppar/toppar_all36_nano_lig.str
117
+ ! stream ../../toppar/toppar_all36_nanolig_patch.str
123
118
124
119
! Additional topologies and parameters for synthetic polymer
125
- stream ../../toppar/toppar_all36_synthetic_polymer.str
126
- stream ../../toppar/toppar_all36_synthetic_polymer_patch.str
127
- stream ../../toppar/toppar_all36_polymer_solvent.str
120
+ ! stream ../../toppar/toppar_all36_synthetic_polymer.str
121
+ ! stream ../../toppar/toppar_all36_synthetic_polymer_patch.str
122
+ ! stream ../../toppar/toppar_all36_polymer_solvent.str
128
123
129
124
! Additional topologies and parameters for water and ions
130
125
stream ../../toppar/toppar_water_ions.str
131
126
stream ../../toppar/toppar_dum_noble_gases.str
132
- stream ../../toppar/toppar_ions_won.str
127
+ ! stream ../../toppar/toppar_ions_won.str
133
128
134
129
! Additional topologies and parameters for protein
135
- stream ../../toppar/toppar_all36_prot_arg0.str
130
+ ! stream ../../toppar/toppar_all36_prot_arg0.str
136
131
stream ../../toppar/toppar_all36_prot_c36m_d_aminoacids.str
137
132
stream ../../toppar/toppar_all36_prot_fluoro_alkanes.str
138
133
stream ../../toppar/toppar_all36_prot_heme.str
139
134
stream ../../toppar/toppar_all36_prot_retinol.str
140
- stream ../../toppar/toppar_all36_prot_modify_res.str
135
+ ! stream ../../toppar/toppar_all36_prot_modify_res.str
141
136
142
137
! Additional topologies and parameters for nucleic acids
143
138
stream ../../toppar/toppar_all36_na_nad_ppi.str
144
- stream ../../toppar/toppar_all36_na_rna_modified.str
139
+ ! stream ../../toppar/toppar_all36_na_rna_modified.str
145
140
146
141
! Additional topologies and parameters for lipids
147
142
!stream ../../toppar/toppar_all36_lipid_archaeal.str
148
143
stream ../../toppar/toppar_all36_lipid_bacterial.str
149
144
stream ../../toppar/toppar_all36_lipid_cardiolipin.str
150
145
stream ../../toppar/toppar_all36_lipid_cholesterol.str
151
- stream ../../toppar/toppar_all36_lipid_dag.str
146
+ ! stream ../../toppar/toppar_all36_lipid_dag.str
152
147
stream ../../toppar/toppar_all36_lipid_inositol.str
153
148
!stream ../../toppar/toppar_all36_lipid_lnp.str
154
149
stream ../../toppar/toppar_all36_lipid_lps.str
155
- !stream ../../toppar/toppar_all36_lipid_mycobacterial.str
150
+ !! stream ../../toppar/toppar_all36_lipid_mycobacterial.str
156
151
stream ../../toppar/toppar_all36_lipid_miscellaneous.str
157
152
stream ../../toppar/toppar_all36_lipid_model.str
158
153
stream ../../toppar/toppar_all36_lipid_prot.str
159
154
stream ../../toppar/toppar_all36_lipid_sphingo.str
160
155
!stream ../../toppar/toppar_all36_lipid_tag.str
161
- stream ../../toppar/toppar_all36_lipid_yeast.str
162
- stream ../../toppar/toppar_all36_lipid_hmmm.str
163
- stream ../../toppar/toppar_all36_lipid_detergent.str
164
- stream ../../toppar/toppar_all36_lipid_ether.str
156
+ !stream ../../toppar/toppar_all36_lipid_yeast.str
157
+ !stream ../../toppar/toppar_all36_lipid_hmmm.str
158
+ !stream ../../toppar/toppar_all36_lipid_detergent.str
159
+ !stream ../../toppar/toppar_all36_lipid_ether.str
160
+ stream ../../toppar/toppar_all36_prot_na_combined.str
161
+
165
162
166
163
! Additional topologies and parameters for carbohydrates
167
- stream ../../toppar/toppar_all36_carb_glycolipid.str
168
- stream ../../toppar/toppar_all36_carb_glycopeptide.str
169
- stream ../../toppar/toppar_all36_carb_imlab.str
164
+ ! stream ../../toppar/toppar_all36_carb_glycolipid.str
165
+ ! stream ../../toppar/toppar_all36_carb_glycopeptide.str
166
+ ! stream ../../toppar/toppar_all36_carb_imlab.str
170
167
171
168
! Additional topologies and parameters for spin/fluorophore labels
172
169
stream ../../toppar/toppar_all36_label_spin.str
@@ -284,7 +281,7 @@ def _get_CHARMM_vacuum_production_body(self) -> str:
284
281
energy inbfrq 1
285
282
energy inbfrq 0
286
283
287
- mini sd nstep 200
284
+ mini sd nstep 100
288
285
289
286
set nstep = { nstep }
290
287
set temp = { temperature .value_in_unit (unit .kelvin )}
@@ -302,7 +299,7 @@ def _get_CHARMM_vacuum_production_body(self) -> str:
302
299
stop"""
303
300
return body
304
301
305
- def _get_CHARMM_waterbox_postprocessing_body (self ):
302
+ def _get_CHARMM_waterbox_postprocessing_body (self , env : str ):
306
303
##### solv phase ######
307
304
switch = self .vdw_switching_keyword
308
305
if (
@@ -322,13 +319,13 @@ def _get_CHARMM_waterbox_postprocessing_body(self):
322
319
GPU_domdec = ""
323
320
324
321
body = f"""
325
- stream charmm_step3_pbcsetup .str
322
+ stream charmm_ { env } _step3_pbcsetup .str
326
323
327
324
!
328
325
! Image Setup
329
326
!
330
327
331
- open read unit 10 card name charmm_crystal_image .str
328
+ open read unit 10 card name charmm_ { env } _crystal_image .str
332
329
CRYSTAL DEFINE @XTLtype @A @B @C @alpha @beta @gamma
333
330
CRYSTAL READ UNIT 10 CARD
334
331
@@ -363,7 +360,7 @@ def _get_CHARMM_waterbox_postprocessing_body(self):
363
360
set nframes @nframes !?nfile
364
361
traj firstu 41 nunit 1 begi @start skip @skip stop @nframes
365
362
366
- open form writ unit 51 name ener_solv .log
363
+ open form writ unit 51 name ener_ { env } .log
367
364
echu 51
368
365
set idx 0
369
366
label loop
@@ -377,7 +374,7 @@ def _get_CHARMM_waterbox_postprocessing_body(self):
377
374
stop"""
378
375
return body
379
376
380
- def _get_CHARMM_waterbox_production_body (self ):
377
+ def _get_CHARMM_waterbox_production_body (self , env ):
381
378
##### waterbox ######
382
379
switch = self .vdw_switching_keyword
383
380
@@ -423,13 +420,13 @@ def _get_CHARMM_waterbox_production_body(self):
423
420
! Setup PBC (Periodic Boundary Condition)
424
421
!
425
422
426
- stream charmm_step3_pbcsetup .str
423
+ stream charmm_ { env } _step3_pbcsetup .str
427
424
428
425
!
429
426
! Image Setup
430
427
!
431
428
432
- open read unit 10 card name charmm_crystal_image .str
429
+ open read unit 10 card name charmm_ { env } _crystal_image .str
433
430
CRYSTAL DEFINE @XTLtype @A @B @C @alpha @beta @gamma
434
431
CRYSTAL READ UNIT 10 CARD
435
432
@@ -455,8 +452,8 @@ def _get_CHARMM_waterbox_production_body(self):
455
452
456
453
shak bonh para fast sele segi SOLV end
457
454
458
- mini SD nstep 500
459
- mini ABNR nstep 500
455
+ mini SD nstep 100
456
+ mini ABNR nstep 100
460
457
461
458
!
462
459
! NPT dynamics:
@@ -479,7 +476,7 @@ def _get_CHARMM_waterbox_production_body(self):
479
476
set temp = { temperature .value_in_unit (unit .kelvin )}
480
477
481
478
scalar fbeta set 5. sele all end
482
- open write unit 13 file name lig_in_waterbox .dcd
479
+ open write unit 13 file name lig_in_ { env } .dcd
483
480
484
481
DYNA CPT leap start time 0.001 nstep @nstep -
485
482
nprint { nstout } iprfrq { nstout } -
0 commit comments