# BioBB GROMACS Command Line Help Generic usage: ```python biobb_command [-h] --config CONFIG --input_file(s) --output_file ``` ----------------- ## Mdrun Wrapper of the GROMACS mdrun module. ### Get help Command: ```python mdrun -h ``` /bin/sh: mdrun: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_tpr_path** (*string*): Path to the portable binary run input file TPR. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/mdrun.tpr). Accepted formats: TPR * **output_gro_path** (*string*): Path to the output GROMACS structure GRO file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.gro). Accepted formats: GRO * **output_edr_path** (*string*): Path to the output GROMACS portable energy file EDR. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.edr). Accepted formats: EDR * **output_log_path** (*string*): Path to the output GROMACS trajectory log file LOG. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.log). Accepted formats: LOG * **output_trr_path** (*string*): Path to the GROMACS uncompressed raw trajectory file TRR. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.trr). Accepted formats: TRR * **input_cpt_path** (*string*): Path to the input GROMACS checkpoint file CPT. File type: input. [Sample file](None). Accepted formats: CPT * **output_xtc_path** (*string*): Path to the GROMACS compressed trajectory file XTC. File type: output. [Sample file](None). Accepted formats: XTC * **output_cpt_path** (*string*): Path to the output GROMACS checkpoint file CPT. File type: output. [Sample file](None). Accepted formats: CPT * **output_dhdl_path** (*string*): Path to the output dhdl.xvg file only used when free energy calculation is turned on. File type: output. [Sample file](None). Accepted formats: XVG ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **mpi_bin** (*string*): (None) Path to the MPI runner. Usually "mpirun" or "srun".. * **mpi_np** (*integer*): (0) Number of MPI processes. Usually an integer bigger than 1.. * **mpi_flags** (*string*): (None) Path to the MPI hostlist file.. * **checkpoint_time** (*integer*): (15) Checkpoint writing interval in minutes. Only enabled if an output_cpt_path is provided.. * **noappend** (*boolean*): (False) Include the noappend flag to open new output files and add the simulation part number to all output file names. * **num_threads** (*integer*): (0) Let GROMACS guess. The number of threads that are going to be used.. * **num_threads_mpi** (*integer*): (0) Let GROMACS guess. The number of GROMACS MPI threads that are going to be used.. * **num_threads_omp** (*integer*): (0) Let GROMACS guess. The number of GROMACS OPENMP threads that are going to be used.. * **num_threads_omp_pme** (*integer*): (0) Let GROMACS guess. The number of GROMACS OPENMP_PME threads that are going to be used.. * **use_gpu** (*boolean*): (False) Use settings appropriate for GPU. Adds: -nb gpu -pme gpu. * **gpu_id** (*string*): (None) list of unique GPU device IDs available to use.. * **gpu_tasks** (*string*): (None) list of GPU device IDs, mapping each PP task on each node to a device.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (None) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_mdrun.yml) ```python properties: binary_path: gmx num_threads: 0 ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_mdrun_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /inout ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_mdrun_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /inout ``` #### Command line ```python mdrun --config config_mdrun.yml --input_tpr_path mdrun.tpr --output_gro_path ref_mdrun.gro --output_edr_path ref_mdrun.edr --output_log_path ref_mdrun.log --output_trr_path ref_mdrun.trr --input_cpt_path input.cpt --output_xtc_path output.xtc --output_cpt_path output.cpt --output_dhdl_path output.xvg ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_mdrun.json) ```python { "properties": { "num_threads": 0, "binary_path": "gmx" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_mdrun_docker.json) ```python { "properties": { "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/inout" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_mdrun_singularity.json) ```python { "properties": { "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/inout" } } ``` #### Command line ```python mdrun --config config_mdrun.json --input_tpr_path mdrun.tpr --output_gro_path ref_mdrun.gro --output_edr_path ref_mdrun.edr --output_log_path ref_mdrun.log --output_trr_path ref_mdrun.trr --input_cpt_path input.cpt --output_xtc_path output.xtc --output_cpt_path output.cpt --output_dhdl_path output.xvg ``` ## Mdrun_plumed Wrapper of the GROMACS mdrun module. ### Get help Command: ```python mdrun_plumed -h ``` /bin/sh: mdrun_plumed: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_tpr_path** (*string*): Path to the portable binary run input file TPR. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/mdrun.tpr). Accepted formats: TPR * **output_gro_path** (*string*): Path to the output GROMACS structure GRO file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.gro). Accepted formats: GRO * **output_edr_path** (*string*): Path to the output GROMACS portable energy file EDR. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.edr). Accepted formats: EDR * **output_log_path** (*string*): Path to the output GROMACS trajectory log file LOG. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.log). Accepted formats: LOG * **output_trr_path** (*string*): Path to the GROMACS uncompressed raw trajectory file TRR. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.trr). Accepted formats: TRR * **input_cpt_path** (*string*): Path to the input GROMACS checkpoint file CPT. File type: input. [Sample file](None). Accepted formats: CPT * **output_xtc_path** (*string*): Path to the GROMACS compressed trajectory file XTC. File type: output. [Sample file](None). Accepted formats: XTC * **output_cpt_path** (*string*): Path to the output GROMACS checkpoint file CPT. File type: output. [Sample file](None). Accepted formats: CPT * **output_dhdl_path** (*string*): Path to the output dhdl.xvg file only used when free energy calculation is turned on. File type: output. [Sample file](None). Accepted formats: XVG * **input_plumed_path** (*string*): Path to the main PLUMED input file. If provided, PLUMED will be used during the simulation. All files used by the main PLUMED input file must exist in the input_plumed_folder and be called with just their name. Make sure to provide a GROMACS version with the PLUMED patch. File type: input. [Sample file](None). Accepted formats: DAT * **input_plumed_folder** (*string*): Path to the folder with all files needed by the main PLUMED input file, see input_plumed_path. File type: input. [Sample file](None). Accepted formats: DIRECTORY * **output_plumed_folder** (*string*): Folder where PLUMED generated output files will be saved. File type: output. [Sample file](None). Accepted formats: DIRECTORY ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **mpi_bin** (*string*): (None) Path to the MPI runner. Usually "mpirun" or "srun".. * **mpi_np** (*integer*): (0) Number of MPI processes. Usually an integer bigger than 1.. * **mpi_flags** (*string*): (None) Path to the MPI hostlist file.. * **checkpoint_time** (*integer*): (15) Checkpoint writing interval in minutes. Only enabled if an output_cpt_path is provided.. * **noappend** (*boolean*): (False) Include the noappend flag to open new output files and add the simulation part number to all output file names. * **num_threads** (*integer*): (0) Let GROMACS guess. The number of threads that are going to be used.. * **num_threads_mpi** (*integer*): (0) Let GROMACS guess. The number of GROMACS MPI threads that are going to be used.. * **num_threads_omp** (*integer*): (0) Let GROMACS guess. The number of GROMACS OPENMP threads that are going to be used.. * **num_threads_omp_pme** (*integer*): (0) Let GROMACS guess. The number of GROMACS OPENMP_PME threads that are going to be used.. * **use_gpu** (*boolean*): (False) Use settings appropriate for GPU. Adds: -nb gpu -pme gpu. * **gpu_id** (*string*): (None) list of unique GPU device IDs available to use.. * **gpu_tasks** (*string*): (None) list of GPU device IDs, mapping each PP task on each node to a device.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (None) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML ### JSON ## Make_ndx Wrapper of the GROMACS make_ndx module. ### Get help Command: ```python make_ndx -h ``` /bin/sh: make_ndx: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_structure_path** (*string*): Path to the input GRO/PDB/TPR file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/make_ndx.tpr). Accepted formats: GRO, PDB, TPR * **output_ndx_path** (*string*): Path to the output index NDX file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_make_ndx.ndx). Accepted formats: NDX * **input_ndx_path** (*string*): Path to the input index NDX file. File type: input. [Sample file](None). Accepted formats: NDX ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **selection** (*string*): (a CA C N O) Heavy atoms. Atom selection string.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (gromacs/gromacs:latest) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_make_ndx.yml) ```python properties: selection: 'a C* 0 & ! 13 name 14 FREEZE' ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_make_ndx_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /tmp ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_make_ndx_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /tmp ``` #### Command line ```python make_ndx --config config_make_ndx.yml --input_structure_path make_ndx.tpr --output_ndx_path ref_make_ndx.ndx --input_ndx_path input.ndx ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_make_ndx.json) ```python { "properties": { "selection": "a C*\n0 & ! 13\nname 14 FREEZE" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_make_ndx_docker.json) ```python { "properties": { "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/tmp" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_make_ndx_singularity.json) ```python { "properties": { "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/tmp" } } ``` #### Command line ```python make_ndx --config config_make_ndx.json --input_structure_path make_ndx.tpr --output_ndx_path ref_make_ndx.ndx --input_ndx_path input.ndx ``` ## Editconf Wrapper class for the GROMACS editconf module. ### Get help Command: ```python editconf -h ``` /bin/sh: editconf: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_gro_path** (*string*): Path to the input GRO file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/editconf.gro). Accepted formats: GRO, PDB * **output_gro_path** (*string*): Path to the output GRO file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_editconf.gro). Accepted formats: PDB, GRO ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **distance_to_molecule** (*number*): (1.0) Distance of the box from the outermost atom in nm. ie 1.0nm = 10 Angstroms.. * **box_vector_lenghts** (*string*): (None) Array of floats defining the box vector lenghts ie "0.5 0.5 0.5". If this option is used the distance_to_molecule property will be ignored.. * **box_type** (*string*): (cubic) Geometrical shape of the solvent box. . * **center_molecule** (*boolean*): (True) Center molecule in the box.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (None) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_editconf.yml) ```python properties: box_type: cubic distance_to_molecule: 1.0 ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_editconf_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /tmp ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_editconf_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /tmp ``` #### Command line ```python editconf --config config_editconf.yml --input_gro_path editconf.gro --output_gro_path ref_editconf.gro ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_editconf.json) ```python { "properties": { "distance_to_molecule": 1.0, "box_type": "cubic" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_editconf_docker.json) ```python { "properties": { "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/tmp" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_editconf_singularity.json) ```python { "properties": { "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/tmp" } } ``` #### Command line ```python editconf --config config_editconf.json --input_gro_path editconf.gro --output_gro_path ref_editconf.gro ``` ## Ndx2resttop Generate a restrained topology from an index NDX file. ### Get help Command: ```python ndx2resttop -h ``` usage: ndx2resttop [-h] [-c CONFIG] --input_ndx_path INPUT_NDX_PATH --input_top_zip_path INPUT_TOP_ZIP_PATH -o OUTPUT_TOP_ZIP_PATH Generate a restrained topology from an index NDX file. options: -h, --help show this help message and exit -c CONFIG, --config CONFIG This file can be a YAML file, JSON file or JSON string required arguments: --input_ndx_path INPUT_NDX_PATH Path to the input NDX index file. Accepted formats: ndx. --input_top_zip_path INPUT_TOP_ZIP_PATH Path the input TOP topology in zip format. Accepted formats: zip. -o OUTPUT_TOP_ZIP_PATH, --output_top_zip_path OUTPUT_TOP_ZIP_PATH Path the output TOP topology in zip format. Accepted formats: zip. ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_ndx_path** (*string*): Path to the input NDX index file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs_extra/ndx2resttop.ndx). Accepted formats: NDX * **input_top_zip_path** (*string*): Path the input TOP topology in zip format. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs_extra/ndx2resttop.zip). Accepted formats: ZIP * **output_top_zip_path** (*string*): Path the output TOP topology in zip format. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs_extra/ref_ndx2resttop.zip). Accepted formats: ZIP ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **posres_names** (*array*): (CUSTOM_POSRES) String with names of the position restraints to be included in the topology file separated by spaces. If provided it should match the length of the ref_rest_chain_triplet_list.. * **force_constants** (*string*): (500 500 500) Array of three floats defining the force constants.. * **ref_rest_chain_triplet_list** (*string*): (None) Triplet list composed by (reference group, restrain group, chain) list.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_ndx2resttop.yml) ```python properties: ref_rest_chain_triplet_list: ( Chain_A, Chain_A_noMut, A ), ( Chain_B, Chain_B_noMut, B ), ( Chain_C, Chain_C_noMut, C ), ( Chain_D, Chain_D_noMut, D ) ``` #### Command line ```python ndx2resttop --config config_ndx2resttop.yml --input_ndx_path ndx2resttop.ndx --input_top_zip_path ndx2resttop.zip --output_top_zip_path ref_ndx2resttop.zip ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_ndx2resttop.json) ```python { "properties": { "ref_rest_chain_triplet_list": "( Chain_A, Chain_A_noMut, A ), ( Chain_B, Chain_B_noMut, B ), ( Chain_C, Chain_C_noMut, C ), ( Chain_D, Chain_D_noMut, D )" } } ``` #### Command line ```python ndx2resttop --config config_ndx2resttop.json --input_ndx_path ndx2resttop.ndx --input_top_zip_path ndx2resttop.zip --output_top_zip_path ref_ndx2resttop.zip ``` ## Grompp Wrapper of the GROMACS grompp module. ### Get help Command: ```python grompp -h ``` usage: grompp [-h] [-c CONFIG] --input_gro_path INPUT_GRO_PATH --input_top_zip_path INPUT_TOP_ZIP_PATH -o OUTPUT_TPR_PATH [--input_cpt_path INPUT_CPT_PATH] [--input_ndx_path INPUT_NDX_PATH] [--input_mdp_path INPUT_MDP_PATH] Wrapper for the GROMACS grompp module. options: -h, --help show this help message and exit -c CONFIG, --config CONFIG This file can be a YAML file, JSON file or JSON string required arguments: --input_gro_path INPUT_GRO_PATH Path to the input GROMACS structure GRO file. Accepted formats: gro. --input_top_zip_path INPUT_TOP_ZIP_PATH Path to the input GROMACS topology TOP and ITP files in zip format. Accepted formats: zip. -o OUTPUT_TPR_PATH, --output_tpr_path OUTPUT_TPR_PATH Path to the output portable binary run file TPR. Accepted formats: tpr. optional arguments: --input_cpt_path INPUT_CPT_PATH Path to the input GROMACS checkpoint file CPT. Accepted formats: cpt. --input_ndx_path INPUT_NDX_PATH Path to the input GROMACS index files NDX. Accepted formats: ndx. --input_mdp_path INPUT_MDP_PATH Path to the input GROMACS `MDP file `_. Accepted formats: mdp. ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_gro_path** (*string*): Path to the input GROMACS structure GRO file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/grompp.gro). Accepted formats: GRO * **input_top_zip_path** (*string*): Path to the input GROMACS topology TOP and ITP files in zip format. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/grompp.zip). Accepted formats: ZIP * **output_tpr_path** (*string*): Path to the output portable binary run file TPR. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_grompp.tpr). Accepted formats: TPR * **input_cpt_path** (*string*): Path to the input GROMACS checkpoint file CPT. File type: input. [Sample file](None). Accepted formats: CPT * **input_ndx_path** (*string*): Path to the input GROMACS index files NDX. File type: input. [Sample file](None). Accepted formats: NDX * **input_mdp_path** (*string*): Path to the input GROMACS MDP file. File type: input. [Sample file](None). Accepted formats: MDP ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **mdp** (*object*): ({}) MDP options specification.. * **simulation_type** (*string*): (None) Default options for the mdp file. Each one creates a different mdp file. . * **maxwarn** (*integer*): (0) Maximum number of allowed warnings. If simulation_type is index default is 10.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (gromacs/gromacs:latest) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp.yml) ```python properties: maxwarn: 1 mdp: ld-seed: '1' ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /tmp maxwarn: 1 mdp: ld-seed: '1' ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /inout container_working_dir: /inout maxwarn: 1 mdp: ld-seed: '1' ``` #### Command line ```python grompp --config config_grompp.yml --input_gro_path grompp.gro --input_top_zip_path grompp.zip --output_tpr_path ref_grompp.tpr --input_cpt_path input.cpt --input_ndx_path input.ndx --input_mdp_path input.mdp ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp.json) ```python { "properties": { "maxwarn": 1, "mdp": { "ld-seed": "1" } } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_docker.json) ```python { "properties": { "maxwarn": 1, "mdp": { "ld-seed": "1" }, "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/tmp" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_singularity.json) ```python { "properties": { "maxwarn": 1, "mdp": { "ld-seed": "1" }, "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/inout", "container_working_dir": "/inout" } } ``` #### Command line ```python grompp --config config_grompp.json --input_gro_path grompp.gro --input_top_zip_path grompp.zip --output_tpr_path ref_grompp.tpr --input_cpt_path input.cpt --input_ndx_path input.ndx --input_mdp_path input.mdp ``` ## Gmxselect Wrapper of the GROMACS select module. ### Get help Command: ```python gmxselect -h ``` /bin/sh: gmxselect: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_structure_path** (*string*): Path to the input GRO/PDB/TPR file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/make_ndx.tpr). Accepted formats: PDB, GRO, TPR * **output_ndx_path** (*string*): Path to the output index NDX file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_select.ndx). Accepted formats: NDX * **input_ndx_path** (*string*): Path to the input index NDX file. File type: input. [Sample file](None). Accepted formats: NDX ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **selection** (*string*): (a CA C N O) Heavy atoms. Atom selection string.. * **append** (*boolean*): (False) Append the content of the input_ndx_path to the output_ndx_path.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (gromacs/gromacs:latest) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_gmxselect.yml) ```python properties: selection: '"Mynewgroup" group "Protein-H" and not same residue as within 0.4 of resname ARG' ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_gmxselect_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /inout selection: \"Mynewgroup\" group \"Protein-H\" and not same residue as within 0.4 of resname ARG ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_gmxselect_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /inout selection: '"Mynewgroup" group "Protein-H" and not same residue as within 0.4 of resname ARG' ``` #### Command line ```python gmxselect --config config_gmxselect.yml --input_structure_path make_ndx.tpr --output_ndx_path ref_select.ndx --input_ndx_path input.ndx ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_gmxselect.json) ```python { "properties": { "selection": "\"Mynewgroup\" group \"Protein-H\" and not same residue as within 0.4 of resname ARG" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_gmxselect_docker.json) ```python { "properties": { "selection": "\\\"Mynewgroup\\\" group \\\"Protein-H\\\" and not same residue as within 0.4 of resname ARG", "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/inout" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_gmxselect_singularity.json) ```python { "properties": { "selection": "\"Mynewgroup\" group \"Protein-H\" and not same residue as within 0.4 of resname ARG", "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/inout" } } ``` #### Command line ```python gmxselect --config config_gmxselect.json --input_structure_path make_ndx.tpr --output_ndx_path ref_select.ndx --input_ndx_path input.ndx ``` ## Pdb2gmx Wrapper class for the GROMACS pdb2gmx module. ### Get help Command: ```python pdb2gmx -h ``` /bin/sh: pdb2gmx: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_pdb_path** (*string*): Path to the input PDB file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/egfr.pdb). Accepted formats: PDB * **output_gro_path** (*string*): Path to the output GRO file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_pdb2gmx.gro). Accepted formats: GRO * **output_top_zip_path** (*string*): Path the output TOP topology in zip format. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_pdb2gmx.zip). Accepted formats: ZIP ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **water_type** (*string*): (spce) Water molecule type. . * **force_field** (*string*): (amber99sb-ildn) Force field to be used during the conversion. . * **ignh** (*boolean*): (False) Should pdb2gmx ignore the hidrogens in the original structure.. * **lys** (*array*): (None) Lysine protonation states for each chain in the input pdb. Each item of the list should be a string with the protonation states for that chain or empty if the residue is not present in that chain (0: not protonated, 1: protonated).. * **arg** (*array*): (None) Arginine protonation states for each chain in the input pdb. Each item of the list should be a string with the protonation states for that chain or empty if the residue is not present in that chain (0: not protonated, 1: protonated).. * **asp** (*array*): (None) Aspartic acid protonation states for each chain in the input pdb. Each item of the list should be a string with the protonation states for that chain or empty if the residue is not present in that chain (0: not protonated, 1: protonated).. * **glu** (*array*): (None) Glutamic acid protonation states for each chain in the input pdb. Each item of the list should be a string with the protonation states for that chain or empty if the residue is not present in that chain (0: not protonated, 1: protonated).. * **gln** (*array*): (None) Glutamine protonation states for each chain in the input pdb. Each item of the list should be a string with the protonation states for that chain or empty if the residue is not present in that chain (0: not protonated, 1: protonated).. * **his** (*array*): (None) Histidine protonation states for each chain in the input pdb. Each item of the list should be a string with the protonation states for that chain or empty if the residue is not present in that chain. Make sure residues are named HIS (0: HID, 1: HIE, 2: HIP, 3: HIS1).. * **merge** (*boolean*): (False) Merge all chains into a single molecule.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (gromacs/gromacs:latest) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_pdb2gmx.yml) ```python properties: his: 0 0 1 1 0 0 0 ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_pdb2gmx_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /inout his: 0 0 1 1 0 0 0 ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_pdb2gmx_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /inout his: 0 0 1 1 0 0 0 ``` #### Command line ```python pdb2gmx --config config_pdb2gmx.yml --input_pdb_path egfr.pdb --output_gro_path ref_pdb2gmx.gro --output_top_zip_path ref_pdb2gmx.zip ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_pdb2gmx.json) ```python { "properties": { "his": "0 0 1 1 0 0 0" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_pdb2gmx_docker.json) ```python { "properties": { "his": "0 0 1 1 0 0 0", "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/inout" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_pdb2gmx_singularity.json) ```python { "properties": { "his": "0 0 1 1 0 0 0", "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/inout" } } ``` #### Command line ```python pdb2gmx --config config_pdb2gmx.json --input_pdb_path egfr.pdb --output_gro_path ref_pdb2gmx.gro --output_top_zip_path ref_pdb2gmx.zip ``` ## Append_ligand This class takes a ligand ITP file and inserts it in a topology. ### Get help Command: ```python append_ligand -h ``` /bin/sh: append_ligand: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_top_zip_path** (*string*): Path the input topology TOP and ITP files zipball. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs_extra/ndx2resttop.zip). Accepted formats: ZIP * **input_itp_path** (*string*): Path to the ligand ITP file to be inserted in the topology. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs_extra/pep_ligand.itp). Accepted formats: ITP * **output_top_zip_path** (*string*): Path/Name the output topology TOP and ITP files zipball. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs_extra/ref_appendligand.zip). Accepted formats: ZIP * **input_posres_itp_path** (*string*): Path to the position restriction ITP file. File type: input. [Sample file](None). Accepted formats: ITP ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **posres_name** (*string*): (POSRES_LIGAND) String to be included in the ifdef clause.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_append_ligand.yml) ```python properties: posres_name: POSRES_LIGAND ``` #### Command line ```python append_ligand --config config_append_ligand.yml --input_top_zip_path ndx2resttop.zip --input_itp_path pep_ligand.itp --output_top_zip_path ref_appendligand.zip --input_posres_itp_path input.itp ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_append_ligand.json) ```python { "properties": { "posres_name": "POSRES_LIGAND" } } ``` #### Command line ```python append_ligand --config config_append_ligand.json --input_top_zip_path ndx2resttop.zip --input_itp_path pep_ligand.itp --output_top_zip_path ref_appendligand.zip --input_posres_itp_path input.itp ``` ## Solvate Wrapper of the GROMACS solvate module. ### Get help Command: ```python solvate -h ``` /bin/sh: solvate: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_solute_gro_path** (*string*): Path to the input GRO file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/solvate.gro). Accepted formats: GRO, PDB * **output_gro_path** (*string*): Path to the output GRO file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_solvate.gro). Accepted formats: GRO, PDB * **input_top_zip_path** (*string*): Path the input TOP topology in zip format. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/solvate.zip). Accepted formats: ZIP * **output_top_zip_path** (*string*): Path the output topology in zip format. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_solvate.zip). Accepted formats: ZIP * **input_solvent_gro_path** (*string*): (spc216.gro) Path to the GRO file containing the structure of the solvent. File type: input. [Sample file](None). Accepted formats: GRO ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **shell** (*number*): (0.0) Thickness in nanometers of optional water layer around solute.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (gromacs/gromacs:latest) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_solvate.yml) ```python properties: binary_path: gmx restart: 'False' ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_solvate_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /inout ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_solvate_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /inout ``` #### Command line ```python solvate --config config_solvate.yml --input_solute_gro_path solvate.gro --output_gro_path ref_solvate.gro --input_top_zip_path solvate.zip --output_top_zip_path ref_solvate.zip --input_solvent_gro_path input.gro ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_solvate.json) ```python { "properties": { "binary_path": "gmx", "restart": "False" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_solvate_docker.json) ```python { "properties": { "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/inout" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_solvate_singularity.json) ```python { "properties": { "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/inout" } } ``` #### Command line ```python solvate --config config_solvate.json --input_solute_gro_path solvate.gro --output_gro_path ref_solvate.gro --input_top_zip_path solvate.zip --output_top_zip_path ref_solvate.zip --input_solvent_gro_path input.gro ``` ## Genion Wrapper class for the GROMACS genion module. ### Get help Command: ```python genion -h ``` /bin/sh: genion: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_tpr_path** (*string*): Path to the input portable run input TPR file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/genion.tpr). Accepted formats: TPR * **output_gro_path** (*string*): Path to the input structure GRO file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_genion.gro). Accepted formats: GRO * **input_top_zip_path** (*string*): Path the input TOP topology in zip format. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/genion.zip). Accepted formats: ZIP * **output_top_zip_path** (*string*): Path the output topology TOP and ITP files zipball. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_genion.zip). Accepted formats: ZIP * **input_ndx_path** (*string*): Path to the input index NDX file. File type: input. [Sample file](None). Accepted formats: NDX ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **replaced_group** (*string*): (SOL) Group of molecules that will be replaced by the solvent.. * **neutral** (*boolean*): (False) Neutralize the charge of the system.. * **concentration** (*number*): (0.0) Concentration of the ions in (mol/liter).. * **seed** (*integer*): (1993) Seed for random number generator.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (gromacs/gromacs:latest) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genion.yml) ```python properties: concentration: 0.05 replaced_group: SOL ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genion_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /data container_working_dir: /data ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genion_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /data container_working_dir: /data ``` #### Command line ```python genion --config config_genion.yml --input_tpr_path genion.tpr --output_gro_path ref_genion.gro --input_top_zip_path genion.zip --output_top_zip_path ref_genion.zip --input_ndx_path input.ndx ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genion.json) ```python { "properties": { "concentration": 0.05, "replaced_group": "SOL" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genion_docker.json) ```python { "properties": { "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/data", "container_working_dir": "/data" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genion_singularity.json) ```python { "properties": { "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/data", "container_working_dir": "/data" } } ``` #### Command line ```python genion --config config_genion.json --input_tpr_path genion.tpr --output_gro_path ref_genion.gro --input_top_zip_path genion.zip --output_top_zip_path ref_genion.zip --input_ndx_path input.ndx ``` ## Trjcat Wrapper class for the GROMACS trjcat module. ### Get help Command: ```python trjcat -h ``` /bin/sh: trjcat: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_trj_zip_path** (*string*): Path the input GROMACS trajectories (xtc, trr, cpt, gro, pdb, tng) to concatenate in zip format. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/trjcat.zip). Accepted formats: ZIP * **output_trj_path** (*string*): Path to the output trajectory file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_trjcat.trr). Accepted formats: PDB, GRO, XTC, TRR, TNG ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **concatenate** (*boolean*): (True) Only concatenate the files without removal of frames with identical timestamps.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (None) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_trjcat.yml) ```python properties: binary_path: gmx restart: 'False' ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_trjcat_docker.yml) ```python properties: binary_path: gmx container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /inout restart: 'False' ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_trjcat_singularity.yml) ```python properties: binary_path: gmx container_image: gromacs.simg container_path: singularity container_volume_path: /inout restart: 'False' ``` #### Command line ```python trjcat --config config_trjcat.yml --input_trj_zip_path trjcat.zip --output_trj_path ref_trjcat.trr ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_trjcat.json) ```python { "properties": { "binary_path": "gmx", "restart": "False" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_trjcat_docker.json) ```python { "properties": { "binary_path": "gmx", "restart": "False", "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/inout" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_trjcat_singularity.json) ```python { "properties": { "binary_path": "gmx", "restart": "False", "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/inout" } } ``` #### Command line ```python trjcat --config config_trjcat.json --input_trj_zip_path trjcat.zip --output_trj_path ref_trjcat.trr ``` ## Grompp_mdrun Wrapper of the GROMACS grompp module and the GROMACS mdrun module. ### Get help Command: ```python grompp_mdrun -h ``` usage: grompp_mdrun [-h] [-c CONFIG] --input_gro_path INPUT_GRO_PATH --input_top_zip_path INPUT_TOP_ZIP_PATH --output_trr_path OUTPUT_TRR_PATH --output_gro_path OUTPUT_GRO_PATH --output_edr_path OUTPUT_EDR_PATH --output_log_path OUTPUT_LOG_PATH [--input_cpt_path INPUT_CPT_PATH] [--input_ndx_path INPUT_NDX_PATH] [--input_mdp_path INPUT_MDP_PATH] [--output_xtc_path OUTPUT_XTC_PATH] [--output_cpt_path OUTPUT_CPT_PATH] [--output_dhdl_path OUTPUT_DHDL_PATH] Wrapper for the GROMACS grompp_mdrun module. options: -h, --help show this help message and exit -c CONFIG, --config CONFIG This file can be a YAML file, JSON file or JSON string required arguments: --input_gro_path INPUT_GRO_PATH Path to the input GROMACS structure GRO file. Accepted formats: gro. --input_top_zip_path INPUT_TOP_ZIP_PATH Path to the input GROMACS topology TOP and ITP files in zip format. Accepted formats: zip. --output_trr_path OUTPUT_TRR_PATH Path to the GROMACS uncompressed raw trajectory file TRR. Accepted formats: trr. --output_gro_path OUTPUT_GRO_PATH Path to the output GROMACS structure GRO file. Accepted formats: gro. --output_edr_path OUTPUT_EDR_PATH Path to the output GROMACS portable energy file EDR. Accepted formats: edr. --output_log_path OUTPUT_LOG_PATH Path to the output GROMACS trajectory log file LOG. Accepted formats: log. optional arguments: --input_cpt_path INPUT_CPT_PATH Path to the input GROMACS checkpoint file CPT. Accepted formats: cpt. --input_ndx_path INPUT_NDX_PATH Path to the input GROMACS index files NDX. Accepted formats: ndx. --input_mdp_path INPUT_MDP_PATH Path to the input GROMACS `MDP file `_. Accepted formats: mdp. --output_xtc_path OUTPUT_XTC_PATH Path to the GROMACS compressed trajectory file XTC. Accepted formats: xtc. --output_cpt_path OUTPUT_CPT_PATH Path to the output GROMACS checkpoint file CPT. Accepted formats: cpt. --output_dhdl_path OUTPUT_DHDL_PATH Path to the output dhdl.xvg file only used when free energy calculation is turned on. Accepted formats: xvg. ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_gro_path** (*string*): Path to the input GROMACS structure GRO file. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/grompp.gro). Accepted formats: GRO * **input_top_zip_path** (*string*): Path to the input GROMACS topology TOP and ITP files in zip format. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/grompp.zip). Accepted formats: ZIP * **output_trr_path** (*string*): Path to the GROMACS uncompressed raw trajectory file TRR. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.trr). Accepted formats: TRR * **output_gro_path** (*string*): Path to the output GROMACS structure GRO file. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.gro). Accepted formats: GRO * **output_edr_path** (*string*): Path to the output GROMACS portable energy file EDR. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_mdrun.edr). Accepted formats: EDR * **output_log_path** (*string*): Path to the output GROMACS trajectory log file LOG. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_gmx_mdrun.log). Accepted formats: LOG * **input_cpt_path** (*string*): Path to the input GROMACS checkpoint file CPT. File type: input. [Sample file](None). Accepted formats: CPT * **input_ndx_path** (*string*): Path to the input GROMACS index files NDX. File type: input. [Sample file](None). Accepted formats: NDX * **input_mdp_path** (*string*): Path to the input GROMACS MDP file. File type: input. [Sample file](None). Accepted formats: MDP * **output_xtc_path** (*string*): Path to the GROMACS compressed trajectory file XTC. File type: output. [Sample file](None). Accepted formats: XTC * **output_cpt_path** (*string*): Path to the output GROMACS checkpoint file CPT. File type: output. [Sample file](None). Accepted formats: CPT * **output_dhdl_path** (*string*): Path to the output dhdl.xvg file only used when free energy calculation is turned on. File type: output. [Sample file](None). Accepted formats: XVG ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **mdp** (*object*): ({}) MDP options specification.. * **simulation_type** (*string*): (minimization) Default options for the mdp file. Each creates a different mdp file. . * **maxwarn** (*integer*): (10) Maximum number of allowed warnings.. * **mpi_bin** (*string*): (None) Path to the MPI runner. Usually "mpirun" or "srun".. * **mpi_np** (*string*): (None) Number of MPI processes. Usually an integer bigger than 1.. * **mpi_hostlist** (*string*): (None) Path to the MPI hostlist file.. * **checkpoint_time** (*integer*): (15) Checkpoint writing interval in minutes. Only enabled if an output_cpt_path is provided.. * **num_threads** (*integer*): (0) Let GROMACS guess. The number of threads that are going to be used.. * **num_threads_mpi** (*integer*): (0) Let GROMACS guess. The number of GROMACS MPI threads that are going to be used.. * **num_threads_omp** (*integer*): (0) Let GROMACS guess. The number of GROMACS OPENMP threads that are going to be used.. * **num_threads_omp_pme** (*integer*): (0) Let GROMACS guess. The number of GROMACS OPENMP_PME threads that are going to be used.. * **use_gpu** (*boolean*): (False) Use settings appropriate for GPU. Adds: -nb gpu -pme gpu. * **gpu_id** (*string*): (None) list of unique GPU device IDs available to use.. * **gpu_tasks** (*string*): (None) list of GPU device IDs, mapping each PP task on each node to a device.. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (gromacs/gromacs:latest) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_mdrun.yml) ```python properties: binary_path: gmx maxwarn: 1 mdp: dt: 0.0001 ld-seed: '1' num_threads: 0 simulation_type: free ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_mdrun_docker.yml) ```python properties: binary_path: gmx container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /inout maxwarn: 1 mdp: dt: 0.0001 ld-seed: '1' num_threads: 0 simulation_type: free ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_mdrun_singularity.yml) ```python properties: binary_path: gmx container_image: gromacs.simg container_path: singularity container_volume_path: /inout mdp: dt: 0.0001 ld-seed: '1' num_threads: 0 simulation_type: free ``` #### Command line ```python grompp_mdrun --config config_grompp_mdrun.yml --input_gro_path grompp.gro --input_top_zip_path grompp.zip --output_trr_path ref_mdrun.trr --output_gro_path ref_mdrun.gro --output_edr_path ref_mdrun.edr --output_log_path ref_gmx_mdrun.log --input_cpt_path input.cpt --input_ndx_path input.ndx --input_mdp_path input.mdp --output_xtc_path output.xtc --output_cpt_path output.cpt --output_dhdl_path output.xvg ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_mdrun.json) ```python { "properties": { "simulation_type": "free", "maxwarn": 1, "mdp": { "ld-seed": "1", "dt": 0.0001 }, "num_threads": 0, "binary_path": "gmx" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_mdrun_docker.json) ```python { "properties": { "simulation_type": "free", "maxwarn": 1, "mdp": { "ld-seed": "1", "dt": 0.0001 }, "num_threads": 0, "binary_path": "gmx", "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/inout" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_grompp_mdrun_singularity.json) ```python { "properties": { "simulation_type": "free", "mdp": { "ld-seed": "1", "dt": 0.0001 }, "num_threads": 0, "binary_path": "gmx", "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/inout" } } ``` #### Command line ```python grompp_mdrun --config config_grompp_mdrun.json --input_gro_path grompp.gro --input_top_zip_path grompp.zip --output_trr_path ref_mdrun.trr --output_gro_path ref_mdrun.gro --output_edr_path ref_mdrun.edr --output_log_path ref_gmx_mdrun.log --input_cpt_path input.cpt --input_ndx_path input.ndx --input_mdp_path input.mdp --output_xtc_path output.xtc --output_cpt_path output.cpt --output_dhdl_path output.xvg ``` ## Genrestr Wrapper of the GROMACS genrestr module. ### Get help Command: ```python genrestr -h ``` /bin/sh: genrestr: command not found ### I / O Arguments Syntax: input_argument (datatype) : Definition Config input / output arguments for this building block: * **input_structure_path** (*string*): Path to the input structure PDB, GRO or TPR format. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/genrestr.gro). Accepted formats: PDB, GRO, TPR * **output_itp_path** (*string*): Path the output ITP topology file with restrains. File type: output. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/reference/gromacs/ref_genrestr.itp). Accepted formats: ITP * **input_ndx_path** (*string*): Path to the input GROMACS index file, NDX format. File type: input. [Sample file](https://github.com/bioexcel/biobb_gromacs/raw/master/biobb_gromacs/test/data/gromacs/genrestr.ndx). Accepted formats: NDX ### Config Syntax: input_parameter (datatype) - (default_value) Definition Config parameters for this building block: * **restrained_group** (*string*): (system) Index group that will be restrained.. * **force_constants** (*string*): (500 500 500) Array of three floats defining the force constants. * **gmx_lib** (*string*): (None) Path set GROMACS GMXLIB environment variable.. * **binary_path** (*string*): (gmx) Path to the GROMACS executable binary.. * **remove_tmp** (*boolean*): (True) Remove temporal files.. * **restart** (*boolean*): (False) Do not execute if output files exist.. * **sandbox_path** (*string*): (./) Parent path to the sandbox directory.. * **container_path** (*string*): (None) Path to the binary executable of your container.. * **container_image** (*string*): (gromacs/gromacs:latest) Container Image identifier.. * **container_volume_path** (*string*): (/data) Path to an internal directory in the container.. * **container_working_dir** (*string*): (None) Path to the internal CWD in the container.. * **container_user_id** (*string*): (None) User number id to be mapped inside the container.. * **container_shell_path** (*string*): (/bin/bash) Path to the binary executable of the container shell.. ### YAML #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genrestr.yml) ```python properties: force_constants: 500 500 500 restrained_group: system ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genrestr_docker.yml) ```python properties: container_image: gromacs/gromacs:2025.2 container_path: docker container_volume_path: /data container_working_dir: /data ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genrestr_singularity.yml) ```python properties: container_image: gromacs.simg container_path: singularity container_volume_path: /data container_working_dir: /data ``` #### Command line ```python genrestr --config config_genrestr.yml --input_structure_path genrestr.gro --output_itp_path ref_genrestr.itp --input_ndx_path genrestr.ndx ``` ### JSON #### [Common config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genrestr.json) ```python { "properties": { "restrained_group": "system", "force_constants": "500 500 500" } } ``` #### [Docker config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genrestr_docker.json) ```python { "properties": { "container_path": "docker", "container_image": "gromacs/gromacs:2025.2", "container_volume_path": "/data", "container_working_dir": "/data" } } ``` #### [Singularity config file](https://github.com/bioexcel/biobb_gromacs/blob/master/biobb_gromacs/test/data/config/config_genrestr_singularity.json) ```python { "properties": { "container_path": "singularity", "container_image": "gromacs.simg", "container_volume_path": "/data", "container_working_dir": "/data" } } ``` #### Command line ```python genrestr --config config_genrestr.json --input_structure_path genrestr.gro --output_itp_path ref_genrestr.itp --input_ndx_path genrestr.ndx ```