74
74
input.
75
75
:13: All attribute histograms (attribute_hist*).
76
76
77
+ :14: All 2D density maps in xy plane (`densmap-z_*.sh`)
78
+
77
79
Options for Trajectory Reading
78
80
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
79
81
--begin
273
275
"contact_hist_slab-z_Li-OBT" ,
274
276
"contact_hist_slab-z_Li-OE" ,
275
277
"create_mda_universe" ,
278
+ "densmap-z_ether" ,
279
+ "densmap-z_Li" ,
280
+ "densmap-z_NBT" ,
281
+ "densmap-z_NTf2" ,
282
+ "densmap-z_OBT" ,
283
+ "densmap-z_OE" ,
276
284
"discrete-hex_Li" ,
277
285
"discrete-hex_NBT" ,
278
286
"discrete-hex_OBT" ,
342
350
"contact_hist_slab-z_Li-OBT" ,
343
351
"contact_hist_slab-z_Li-OE" ,
344
352
"create_mda_universe" ,
353
+ "densmap-z_ether" ,
354
+ "densmap-z_Li" ,
355
+ "densmap-z_NBT" ,
356
+ "densmap-z_NTf2" ,
357
+ "densmap-z_OBT" ,
358
+ "densmap-z_OE" ,
345
359
"discrete-hex_Li" ,
346
360
"discrete-hex_NBT" ,
347
361
"discrete-hex_OBT" ,
@@ -507,6 +521,12 @@ def _submit_discretized(sbatch_opts, job_script, bins):
507
521
"contact_hist_slab-z_Li-OE" : (
508
522
posargs_general + posargs_trj [:3 ] + posargs_contact
509
523
),
524
+ "densmap-z_ether" : posargs_general + posargs_trj [:3 ] + posargs_dist ,
525
+ "densmap-z_Li" : posargs_general + posargs_trj [:3 ] + posargs_dist ,
526
+ "densmap-z_NBT" : posargs_general + posargs_trj [:3 ] + posargs_dist ,
527
+ "densmap-z_NTf2" : posargs_general + posargs_trj [:3 ] + posargs_dist ,
528
+ "densmap-z_OBT" : posargs_general + posargs_trj [:3 ] + posargs_dist ,
529
+ "densmap-z_OE" : posargs_general + posargs_trj [:3 ] + posargs_dist ,
510
530
"discrete-hex_Li" : posargs_general + posargs_trj ,
511
531
"discrete-hex_NBT" : posargs_general + posargs_trj ,
512
532
"discrete-hex_OBT" : posargs_general + posargs_trj ,
@@ -576,6 +596,7 @@ def _submit(sbatch_opts, job_script):
576
596
elif args ["discretize" ] and (
577
597
"axial_hex_dist" in job_script
578
598
or "contact_hist_slab-z" in job_script
599
+ or "densmap-z" in job_script
579
600
or "discrete-hex" in job_script
580
601
):
581
602
n_jobs_submitted += _submit_discretized (
@@ -654,6 +675,7 @@ def _submit(sbatch_opts, job_script):
654
675
" 12 = All scripts that take an |edr_file| or an |trr_file| as"
655
676
" input."
656
677
" 13 = All attribute histograms (attribute_hist*)."
678
+ " 14 = All 2D density maps in xy plane (`densmap-z_*.sh`)."
657
679
),
658
680
)
659
681
parser_trj_reading = parser .add_argument_group (
@@ -962,13 +984,15 @@ def _submit(sbatch_opts, job_script):
962
984
if (
963
985
"slab-z" not in args ["scripts" ]
964
986
and "axial_hex_dist" not in args ["scripts" ]
987
+ and "densmap-z" not in args ["scripts" ]
965
988
and "discrete-hex" not in args ["scripts" ]
966
989
and "0" not in args ["scripts" ].split () # All scripts.
967
990
and "2" not in args ["scripts" ].split () # All slab scripts.
968
991
and "4" not in args ["scripts" ].split () # All discrete-hex.
969
992
and "5" not in args ["scripts" ].split () # All axial_hex_dist.
970
993
and "6" not in args ["scripts" ].split () # All contact_hist.
971
994
and "6.2" not in args ["scripts" ].split () # All contact_hist_slab-z
995
+ and "14" not in args ["scripts" ].split () # All 2D density maps.
972
996
):
973
997
raise ValueError (
974
998
"--discretize can only be used in conjunction with scripts"
@@ -1123,6 +1147,9 @@ def _submit(sbatch_opts, job_script):
1123
1147
"discretized trajectory (renewal Li-TFSI)" ,
1124
1148
DTRJ_RENEWAL_TFSI_FILE ,
1125
1149
)
1150
+ elif script == "14" : # All 2D density maps in xy plane.
1151
+ files .setdefault ("run input" , TPR_FILE )
1152
+ files .setdefault ("wrapped compressed trajectory" , XTC_FILE_WRAPPED )
1126
1153
for filetype , filename in files .items ():
1127
1154
if not os .path .isfile (filename ):
1128
1155
fname , extension = os .path .splitext (filename )
@@ -1240,6 +1267,24 @@ def _submit(sbatch_opts, job_script):
1240
1267
posargs_general + posargs_trj [:3 ] + posargs_contact + posargs_slab
1241
1268
),
1242
1269
"create_mda_universe" : posargs_general [:3 ] + posargs_general [4 :],
1270
+ "densmap-z_ether" : (
1271
+ posargs_general + posargs_trj [:3 ] + posargs_dist + posargs_slab
1272
+ ),
1273
+ "densmap-z_Li" : (
1274
+ posargs_general + posargs_trj [:3 ] + posargs_dist + posargs_slab
1275
+ ),
1276
+ "densmap-z_NBT" : (
1277
+ posargs_general + posargs_trj [:3 ] + posargs_dist + posargs_slab
1278
+ ),
1279
+ "densmap-z_NTf2" : (
1280
+ posargs_general + posargs_trj [:3 ] + posargs_dist + posargs_slab
1281
+ ),
1282
+ "densmap-z_OBT" : (
1283
+ posargs_general + posargs_trj [:3 ] + posargs_dist + posargs_slab
1284
+ ),
1285
+ "densmap-z_OE" : (
1286
+ posargs_general + posargs_trj [:3 ] + posargs_dist + posargs_slab
1287
+ ),
1243
1288
"discrete-hex_Li" : posargs_general + posargs_trj + posargs_slab ,
1244
1289
"discrete-hex_NBT" : posargs_general + posargs_trj + posargs_slab ,
1245
1290
"discrete-hex_OBT" : posargs_general + posargs_trj + posargs_slab ,
@@ -1442,6 +1487,7 @@ def _submit(sbatch_opts, job_script):
1442
1487
if "0" not in args ["scripts" ].split () and (
1443
1488
"axial_hex_dist" in batch_script
1444
1489
or "contact_hist_slab-z" in batch_script
1490
+ or "densmap-z" in batch_script
1445
1491
or "discrete-hex" in batch_script
1446
1492
):
1447
1493
# Submit only bulk scripts.
@@ -1454,10 +1500,10 @@ def _submit(sbatch_opts, job_script):
1454
1500
):
1455
1501
# Scripts have already been submitted above.
1456
1502
continue
1457
- if batch_script == "energy_dist" :
1503
+ if batch_script in REQUIRE_EDR :
1458
1504
# Exclude all scripts that take an .edr file as input.
1459
1505
continue
1460
- if "attribute_hist" in batch_script :
1506
+ if batch_script in REQUIRE_TRR :
1461
1507
# Exclude all scripts that take an .trr file as input.
1462
1508
continue
1463
1509
if "lig_change_at_pos_change" in batch_script :
@@ -1478,6 +1524,7 @@ def _submit(sbatch_opts, job_script):
1478
1524
if (
1479
1525
"axial_hex_dist" in batch_script
1480
1526
or "contact_hist_slab-z" in batch_script
1527
+ or "densmap-z" in batch_script
1481
1528
or "discrete-hex" in batch_script
1482
1529
):
1483
1530
n_scripts_submitted += _submit (args_sbatch , batch_script )
@@ -1665,6 +1712,11 @@ def _submit(sbatch_opts, job_script):
1665
1712
for batch_script in posargs .keys ():
1666
1713
if "attribute_hist" in batch_script :
1667
1714
n_scripts_submitted += _submit (args_sbatch , batch_script )
1715
+ if "14" in args ["scripts" ].split ():
1716
+ # All 2D density maps in xy plane.
1717
+ for batch_script in posargs .keys ():
1718
+ if "densmap-z" in batch_script :
1719
+ n_scripts_submitted += _submit (args_sbatch , batch_script )
1668
1720
print ("Submitted {} jobs" .format (n_scripts_submitted ))
1669
1721
if n_scripts_submitted == 0 :
1670
1722
warnings .warn ("No script submitted" , UserWarning , stacklevel = 2 )
0 commit comments