You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where `<old_String>` and `<other_placeholder>` are two placeholder strings that will be replaces respectivly with `<new_string>` and `<new_value>`.
108
113
109
114
##### Example
110
115
The parameters file [examples/single_job.params](examples/single_job.params) defines a simple task meant to change the identity of any Cl atom into Br in a given SDF file:
@@ -151,12 +156,23 @@ To use a job details file, call AutoCompChem and give it the pathname to the job
151
156
```
152
157
autocompchem -j <path_to_job_details_file>
153
158
```
154
-
155
159
The job details file [examples/single_job.json](examples/single_job.json) defines the same job performed in the previous example, i.e., a job meant to change the identity of any Cl atom into Br in a given SDF file.
156
160
Many other examples are available under the [test folder](test). However, note that the JSON format can be used to define many kinds on objects, including jobs that are not meant to be performed by AutoCompChem, e.g., any molecular modeling job. Therefore, not all ´.json´ files in the test folder define ACCJobs.
157
161
158
162
JSON job details files can be conveniently generated from parameter's file (and vice versa) by the `convertJobDefinition` task.
159
163
164
+
Notably, the parameters of the outermost job defined in the JSON file can be alterd by providing the correspodning CLI argument. Therefore, to re-run a job with a different input file we can use the wollowing:
This possibility applies *only to the parameters of the outermost job in the JSON file*, settings of any nested job cannot be overwritten by the corresponding CLI arguments. However, a string replacement mechanism allows to directly replace strings in any part of the JSON or parameter's file from CLI upon reading such files:
where `<old_String>` and `<other_placeholder>` are two placeholder strings that will be replaces respectivly with `<new_string>` and `<new_value>`.
174
+
175
+
160
176
### Multiple Jobs
161
177
AutoCompChem can also perform multiple tasks, hence *jobs*, whether in a sequence (i.e., a workflow), or in parallel (i.e., a batch). Either way, the list of jobs to perform, whether steps of a workflow or independent jobs to be performed in parallel, are defined within a job that acts as a container. Such container may itself be contained in a parent job resulting in a recursive structure.
162
178
The distinction between serial and parallel execution is controlled by the jobs' container: if the container defines the `PARALLELIZE: <threads>` key-value pair, then the contained jobs will be executed in parallel using a number of asynchronous threads equal to the value specified by `<threads>`.
0 commit comments