PDB2GMXParameters
Module
viennaptm.gromacs.pdb2gmx
- class PDB2GMXParameters(*, input: Path, output_gro: Path = PosixPath('conf.gro'), topology: Path = PosixPath('topol.top'), posre_itp: Path | None = PosixPath('posre.itp'), index_file: Path | None = None, clean_pdb: Path | None = None, forcefield: str | None = None, water: str | None = None, chainsep: str | None = None, merge: str | None = None, ignore_h: bool = False, verbose: bool = False)
Bases:
BaseModelParameter model for the GROMACS
pdb2gmxcommand.This model defines all input and output paths as well as optional command-line flags controlling force-field selection, water model, chain handling, and verbosity.
All path-like parameters are normalized to
pathlib.Pathinstances after validation.- Parameters:
input (pathlib.Path) – Input PDB structure file.
output_gro (pathlib.Path) – Output GRO structure file.
topology (pathlib.Path) – Output topology file.
posre_itp (pathlib.Path or None) – Position restraint include file.
index_file (pathlib.Path or None) – Optional index file.
clean_pdb (pathlib.Path or None) – Optional cleaned PDB output file.
forcefield (str or None) – Force-field identifier passed to
pdb2gmx.water (str or None) – Water model identifier.
chainsep (str or None) – Chain separation mode.
merge (str or None) – Chain merge behavior.
ignore_h (bool) – Ignore hydrogen atoms present in the input structure.
verbose (bool) – Enable verbose output.
- chainsep: str | None
- clean_pdb: Path | None
- classmethod ensure_paths(v)
- forcefield: str | None
- ignore_h: bool
- index_file: Path | None
- input: Path
- merge: str | None
- model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- output_gro: Path
- posre_itp: Path | None
- topology: Path
- verbose: bool
- water: str | None
Methods
|
Create a new model by parsing and validating input data from keyword arguments. |
|
|
|
Returns a copy of the model. |
|
|
|
|
|
|
|
|
|
Creates a new instance of the Model class with validated data. |
|
!!! abstract "Usage Documentation" |
|
!!! abstract "Usage Documentation" |
|
!!! abstract "Usage Documentation" |
|
Generates a JSON schema for a model class. |
|
Compute the class name for parametrizations of generic classes. |
|
Override this method to perform additional initialization after __init__ and model_construct. |
|
Try to rebuild the pydantic-core schema for the model. |
|
Validate a pydantic model instance. |
|
!!! abstract "Usage Documentation" |
|
Validate the given object with string data against the Pydantic model. |
|
|
|
|
|
|
|
|
|
|
|
|
|