Skip to content

Commit 163bbe5

Browse files
code cleaning
1 parent 13b924e commit 163bbe5

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ authors:
1414
- family-names: "Camilloni"
1515
given-names: "Carlo"
1616
title: "Multi-eGO"
17-
version: beta.1
17+
version: beta.4
1818
date-released: 2023-10-24
1919
url: "https://github.com/multi-ego/multi-ego"
2020
preferred-citation:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Create a folder in which you want to run the random coil simulation. Copy the ``
9999
python multiego.py --system $SYSTEM_NAME --egos rc
100100
```
101101
```multiego.py``` will then create an output directory in ```multi-eGO/outputs/${SYSTEM_NAME}_rc``` which provides the inputs for the random coil simulation.
102-
The contents of the output folder are ```ffnonbonded.itp``` and ```topol_GRETA.top```. The former is the non-bonded interaction file and needs to be copied into the ```multi-ego-basic.ff/``` folder. The latter needs to be placed in the simulation root directory. We provide ```mdps``` simulation setup files tested with various multi-*e*GO setups in the ```multi-eGO/mdps``` folder. The order in which the simulations are run is as follows:
102+
The contents of the output folder are ```ffnonbonded.itp``` and ```topol_mego.top```. The former is the non-bonded interaction file and needs to be copied into the ```multi-ego-basic.ff/``` folder. The latter needs to be placed in the simulation root directory. We provide ```mdps``` simulation setup files tested with various multi-*e*GO setups in the ```multi-eGO/mdps``` folder. The order in which the simulations are run is as follows:
103103

104104
```
105105
1. ff_em.mdp
@@ -138,7 +138,7 @@ To setup a multi-*e*GO production simulation, you need to run ```multiego.py```
138138
```
139139
python multiego.py --system $SYSTEM_NAME --egos production --epsilon 0.3 --train md_ensemble
140140
```
141-
Here one sets the energy scale ε to 0.3 kJ/mol and trains the model from the ```md_ensemble``` data. The output directory will be ```multi-eGO/outputs/${SYSTEM_NAME}_production_e0.3_0.3``` and will contain the inputs for the production simulation. Again, the contents of the output directory are ```ffnonbonded.itp``` and ```topol_GRETA.top``` and need to be copied to the ```multi-ego-basic.ff/``` folder and the simulation root directory. The ```mdps``` files are the same except for the last step which is now ```ff_aa.mdp```.
141+
Here one sets the energy scale ε to 0.3 kJ/mol and trains the model from the ```md_ensemble``` data. The output directory will be ```multi-eGO/outputs/${SYSTEM_NAME}_production_e0.3_0.3``` and will contain the inputs for the production simulation. Again, the contents of the output directory are ```ffnonbonded.itp``` and ```topol_mego.top``` and need to be copied to the ```multi-ego-basic.ff/``` folder and the simulation root directory. The ```mdps``` files are the same except for the last step which is now ```ff_aa.mdp```.
142142

143143
Happy simulating :)
144144

multiego.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ def meGO_parsing():
5454
args.root_dir = os.path.dirname(os.path.abspath(__file__))
5555
multi_flag = False
5656

57+
# Check if no arguments are provided
58+
if len(sys.argv) == 1:
59+
parser.print_help()
60+
sys.exit(1)
61+
5762
if args.config:
5863
config_yaml = io.read_config(args.config, args_dict)
5964
# check if yaml file is empty

src/multiego/io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def make_header(parameters):
649649
now = time.strftime("%d-%m-%Y %H:%M", time.localtime())
650650

651651
header = f"""
652-
; Multi-eGO force field version beta.1
652+
; Multi-eGO force field version beta.4
653653
; https://github.com/multi-ego/multi-eGO
654654
; Please read and cite:
655655
; Scalone, E. et al. PNAS 119, e2203181119 (2022) 10.1073/pnas.2203181119
@@ -698,7 +698,7 @@ def write_topology(
698698
output_folder,
699699
):
700700
"""
701-
Writes the topology output content into GRETA_topol.top
701+
Writes the topology output content into topol_mego.top
702702
703703
Parameters
704704
----------
@@ -721,7 +721,7 @@ def write_topology(
721721
if write_header:
722722
header = make_header(vars(parameters))
723723

724-
with open(f"{output_folder}/topol_GRETA.top", "w") as file:
724+
with open(f"{output_folder}/topol_mego.top", "w") as file:
725725
header += """
726726
; Include forcefield parameters
727727
#include "ffnonbonded.itp"

0 commit comments

Comments
 (0)