Pipeline Functions
pipes
run_ts_per_lig
run_ts_per_lig(ligand_smiles_df: DataFrame, ts_guess_xyz: str, *, n_confs: int | None = None, n_cores: int = 4, mem_gb: int = 20, debug: bool = False, top_n: int = 10, out_dir: str | None = None, output_parquet: str | None = None, save_output_dir: bool = True, DFT: bool = False)
Run the TS workflow for each ligand in a ligand table.
The function expands each ligand into TS structures using the transition-state guess geometry, generates conformers, runs the XTB pre-screening steps, and optionally performs ORCA DFT refinement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ligand_smiles_df
|
DataFrame
|
Input table containing at least a |
required |
ts_guess_xyz
|
str
|
Path to the XYZ file containing the transition-state guess geometry. The TS type is inferred from this file. |
required |
n_confs
|
int or None
|
Number of conformers to generate per TS structure. If |
None
|
n_cores
|
int
|
Number of CPU cores to use for downstream calculations. |
4
|
mem_gb
|
int
|
Memory limit in gigabytes passed to :class: |
20
|
debug
|
bool
|
If |
False
|
top_n
|
int
|
Number of lowest-energy structures retained after the XTB screening stage. |
10
|
out_dir
|
str or None
|
Base output directory for calculation artifacts. |
None
|
output_parquet
|
str or None
|
If provided, write the resulting dataframe to this Parquet file. |
None
|
save_output_dir
|
bool
|
Whether to keep the output directory structure created by the stepper. |
True
|
DFT
|
bool
|
If |
False
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
DataFrame containing the screened or DFT-refined TS candidates. |
Source code in frust/pipes.py
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | |