Cluster Submission
cluster
ChainPreset
Bases: StrEnum
Named dependent-stage submission presets bundled with FRUST.
Source code in frust/cluster/config.py
10 11 12 13 14 | |
ClusterConfig
dataclass
Cluster and executor settings shared across submitted jobs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
backend
|
('slurm', 'local')
|
Execution backend. Use |
"slurm"
|
partition
|
str or None
|
Slurm partition name. Ignored for the local backend. |
None
|
log_dir
|
str or Path
|
Directory in which submitit writes executor logs. |
'logs'
|
work_dir
|
str or Path or None
|
Optional scratch or work directory forwarded to FRUST pipelines when
they accept a |
None
|
extra_slurm_parameters
|
dict[str, str] or None
|
Additional scheduler parameters forwarded as
|
None
|
Source code in frust/cluster/config.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
JobSubmissionResult
dataclass
Summary information returned after submission.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
job_ids
|
list[str or int]
|
Scheduler or executor job identifiers in submission order. |
required |
tags
|
list[str]
|
Sanitized job tags used for naming and logging. |
required |
save_dirs
|
list[str]
|
Output directories associated with the submitted jobs. |
required |
mode
|
str
|
Submitted workflow mode, such as a pipeline name or chain preset. |
required |
backend
|
str
|
Backend used for submission, typically |
required |
Source code in frust/cluster/config.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
Resources
dataclass
Execution resources for a single submitted job.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cpus
|
int
|
Number of CPU cores requested for the job. |
required |
mem_gb
|
int or float
|
Memory requested for the job in gigabytes. |
required |
timeout_min
|
int
|
Wall-clock timeout in minutes. |
required |
Source code in frust/cluster/config.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
submit_chain
submit_chain(*, csv_path: str | Path, preset: str | None = None, module_path: str | None = None, stage_order: list[str] | None = None, ts_xyz: str | Path, out_dir: str | Path, cluster: ClusterConfig, stage_resources: dict[str, Resources] | None = None, debug: bool = False, production: bool = True, n_confs: int | None = None, functional: str | None = None, basisset: str | None = None, basisset_solv: str | None = None, save_output_dir: bool = True, work_dir: str | Path | None = None) -> JobSubmissionResult
Submit a dependent stage chain from a CSV input file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
csv_path
|
str or Path
|
Path to a CSV file containing at least a |
required |
preset
|
str or None
|
Built-in FRUST chain preset, such as |
None
|
module_path
|
str or None
|
Custom Python module containing stage functions for advanced use. |
None
|
stage_order
|
list[str] or None
|
Explicit stage order for custom chains. |
None
|
ts_xyz
|
str or Path
|
TS template XYZ file used to prepare dependent chain inputs. |
required |
out_dir
|
str or Path
|
Root directory under which per-tag stage outputs are written. |
required |
cluster
|
ClusterConfig
|
Shared cluster or local-executor configuration. |
required |
stage_resources
|
dict[str, Resources] or None
|
Optional per-stage resource overrides. |
None
|
debug
|
bool
|
Forwarded to the stage functions when supported. |
False
|
production
|
bool
|
If |
True
|
n_confs
|
int or None
|
Conformer count forwarded to initialization stages when supported. |
None
|
functional
|
str or None
|
ORCA functional override for preset stage modules. If omitted, the preset module defaults are used. |
None
|
basisset
|
str or None
|
ORCA basis set override for gas-phase preset stages. If omitted, the preset module defaults are used. |
None
|
basisset_solv
|
str or None
|
ORCA basis set override for solvent single-point preset stages. If omitted, the preset module defaults are used. |
None
|
save_output_dir
|
bool
|
Forwarded to initialization stages when supported. |
True
|
work_dir
|
str or Path or None
|
Optional work directory override. If omitted, |
None
|
Returns:
| Type | Description |
|---|---|
JobSubmissionResult
|
Summary of the submitted chain jobs. |
Source code in frust/cluster/facade.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | |
submit_jobs
submit_jobs(*, csv_path: str | Path, pipeline: str, out_dir: str | Path, cluster: ClusterConfig, resources: Resources, ts_xyz: str | Path | None = None, debug: bool = False, production: bool = True, n_confs: int | None = None, save_output_dir: bool = True, dft: bool = False, select_mols: str | list[str] = 'all', work_dir: str | Path | None = None) -> JobSubmissionResult
Submit independent FRUST workflow jobs from a CSV input file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
csv_path
|
str or Path
|
Path to a CSV file containing at least a |
required |
pipeline
|
str
|
High-level pipeline name from :mod: |
required |
out_dir
|
str or Path
|
Output directory under which parquet files and run outputs are written. |
required |
cluster
|
ClusterConfig
|
Shared cluster or local-executor configuration. |
required |
resources
|
Resources
|
CPU, memory, and timeout settings for every submitted job in this submission call. |
required |
ts_xyz
|
str or Path or None
|
TS template XYZ file required by TS-dependent pipelines. |
None
|
debug
|
bool
|
Forwarded to the selected FRUST pipeline. |
False
|
production
|
bool
|
If |
True
|
n_confs
|
int or None
|
Conformer count forwarded to the selected pipeline when supported. |
None
|
save_output_dir
|
bool
|
Forwarded to the selected FRUST pipeline. |
True
|
dft
|
bool
|
Forwarded to the selected FRUST pipeline as |
False
|
select_mols
|
str or list[str]
|
Molecule selection forwarded to |
'all'
|
work_dir
|
str or Path or None
|
Optional work directory override. If omitted, |
None
|
Returns:
| Type | Description |
|---|---|
JobSubmissionResult
|
Summary of the submitted jobs, including scheduler ids and tags. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the pipeline name is unsupported, if required TS inputs are missing, or if the CSV input is invalid. |
Source code in frust/cluster/facade.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
config
ChainPreset
Bases: StrEnum
Named dependent-stage submission presets bundled with FRUST.
Source code in frust/cluster/config.py
10 11 12 13 14 | |
ClusterConfig
dataclass
Cluster and executor settings shared across submitted jobs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
backend
|
('slurm', 'local')
|
Execution backend. Use |
"slurm"
|
partition
|
str or None
|
Slurm partition name. Ignored for the local backend. |
None
|
log_dir
|
str or Path
|
Directory in which submitit writes executor logs. |
'logs'
|
work_dir
|
str or Path or None
|
Optional scratch or work directory forwarded to FRUST pipelines when
they accept a |
None
|
extra_slurm_parameters
|
dict[str, str] or None
|
Additional scheduler parameters forwarded as
|
None
|
Source code in frust/cluster/config.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
JobSubmissionResult
dataclass
Summary information returned after submission.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
job_ids
|
list[str or int]
|
Scheduler or executor job identifiers in submission order. |
required |
tags
|
list[str]
|
Sanitized job tags used for naming and logging. |
required |
save_dirs
|
list[str]
|
Output directories associated with the submitted jobs. |
required |
mode
|
str
|
Submitted workflow mode, such as a pipeline name or chain preset. |
required |
backend
|
str
|
Backend used for submission, typically |
required |
Source code in frust/cluster/config.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
Resources
dataclass
Execution resources for a single submitted job.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cpus
|
int
|
Number of CPU cores requested for the job. |
required |
mem_gb
|
int or float
|
Memory requested for the job in gigabytes. |
required |
timeout_min
|
int
|
Wall-clock timeout in minutes. |
required |
Source code in frust/cluster/config.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
facade
submit_chain
submit_chain(*, csv_path: str | Path, preset: str | None = None, module_path: str | None = None, stage_order: list[str] | None = None, ts_xyz: str | Path, out_dir: str | Path, cluster: ClusterConfig, stage_resources: dict[str, Resources] | None = None, debug: bool = False, production: bool = True, n_confs: int | None = None, functional: str | None = None, basisset: str | None = None, basisset_solv: str | None = None, save_output_dir: bool = True, work_dir: str | Path | None = None) -> JobSubmissionResult
Submit a dependent stage chain from a CSV input file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
csv_path
|
str or Path
|
Path to a CSV file containing at least a |
required |
preset
|
str or None
|
Built-in FRUST chain preset, such as |
None
|
module_path
|
str or None
|
Custom Python module containing stage functions for advanced use. |
None
|
stage_order
|
list[str] or None
|
Explicit stage order for custom chains. |
None
|
ts_xyz
|
str or Path
|
TS template XYZ file used to prepare dependent chain inputs. |
required |
out_dir
|
str or Path
|
Root directory under which per-tag stage outputs are written. |
required |
cluster
|
ClusterConfig
|
Shared cluster or local-executor configuration. |
required |
stage_resources
|
dict[str, Resources] or None
|
Optional per-stage resource overrides. |
None
|
debug
|
bool
|
Forwarded to the stage functions when supported. |
False
|
production
|
bool
|
If |
True
|
n_confs
|
int or None
|
Conformer count forwarded to initialization stages when supported. |
None
|
functional
|
str or None
|
ORCA functional override for preset stage modules. If omitted, the preset module defaults are used. |
None
|
basisset
|
str or None
|
ORCA basis set override for gas-phase preset stages. If omitted, the preset module defaults are used. |
None
|
basisset_solv
|
str or None
|
ORCA basis set override for solvent single-point preset stages. If omitted, the preset module defaults are used. |
None
|
save_output_dir
|
bool
|
Forwarded to initialization stages when supported. |
True
|
work_dir
|
str or Path or None
|
Optional work directory override. If omitted, |
None
|
Returns:
| Type | Description |
|---|---|
JobSubmissionResult
|
Summary of the submitted chain jobs. |
Source code in frust/cluster/facade.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | |
submit_jobs
submit_jobs(*, csv_path: str | Path, pipeline: str, out_dir: str | Path, cluster: ClusterConfig, resources: Resources, ts_xyz: str | Path | None = None, debug: bool = False, production: bool = True, n_confs: int | None = None, save_output_dir: bool = True, dft: bool = False, select_mols: str | list[str] = 'all', work_dir: str | Path | None = None) -> JobSubmissionResult
Submit independent FRUST workflow jobs from a CSV input file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
csv_path
|
str or Path
|
Path to a CSV file containing at least a |
required |
pipeline
|
str
|
High-level pipeline name from :mod: |
required |
out_dir
|
str or Path
|
Output directory under which parquet files and run outputs are written. |
required |
cluster
|
ClusterConfig
|
Shared cluster or local-executor configuration. |
required |
resources
|
Resources
|
CPU, memory, and timeout settings for every submitted job in this submission call. |
required |
ts_xyz
|
str or Path or None
|
TS template XYZ file required by TS-dependent pipelines. |
None
|
debug
|
bool
|
Forwarded to the selected FRUST pipeline. |
False
|
production
|
bool
|
If |
True
|
n_confs
|
int or None
|
Conformer count forwarded to the selected pipeline when supported. |
None
|
save_output_dir
|
bool
|
Forwarded to the selected FRUST pipeline. |
True
|
dft
|
bool
|
Forwarded to the selected FRUST pipeline as |
False
|
select_mols
|
str or list[str]
|
Molecule selection forwarded to |
'all'
|
work_dir
|
str or Path or None
|
Optional work directory override. If omitted, |
None
|
Returns:
| Type | Description |
|---|---|
JobSubmissionResult
|
Summary of the submitted jobs, including scheduler ids and tags. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the pipeline name is unsupported, if required TS inputs are missing, or if the CSV input is invalid. |
Source code in frust/cluster/facade.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |