Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External gromacs SIF image #29

Closed
mmagithub opened this issue Feb 22, 2023 · 2 comments
Closed

External gromacs SIF image #29

mmagithub opened this issue Feb 22, 2023 · 2 comments

Comments

@mmagithub
Copy link

Hi,

The tool seems to require a pre-compiled gromacs (gmx) to work from the container. Is it possible to provide the absolute path of an external gromacs container (as a docker or a singularity image) as a command line argument such that it can use it instead of looking locally for an installed gmx binaries,

Thanks

@mmagithub
Copy link
Author

mmagithub commented Feb 22, 2023

I tried aliasing the gmx:
alias gmx='singularity run -B $PWD -B ~/Desktop/images_executables/ --nv /path_to_gromacs_image/gromacs.sif gmx'

but still I got this error:

ERROR:root:Not found gmx or gmx_mpi.

It does not matter if i add the line to ~/.bashrc...I still get the same error even just typing gmx into a terminal will run gromacs..it seems the gmx path is somehow hard coded

@Aunity
Copy link
Collaborator

Aunity commented Feb 23, 2023

Hi,

The Uni-GBSA need an executable gmx or gmx_mpi in the environment variable. If the executable gmx and gmx_mpi commands are not found, it will raise the error: ERROR:root:Not found gmx or gmx_mpi.

For your situation, I recommend two methods to solve your problem:

Method 1:
Using the conda create -n gbsa -c conda-forge acpype openmpi mpi4py gromacs to install the dependencies required by Uni-GBSA.

Method 2:
Write the command line

singularity run -B $PWD -B /home/marawan/Desktop/images_executables/ --nv /path_to_gromacs_image/gromacs.sif gmx $@

into a file named gmx, and give this file an executable permission through chmod +x gmx. Then put the gmx file in /anywhere/path/, and add this folder to PATH by export PATH=/anywhere/path/:$PATH.

@Aunity Aunity added help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Feb 23, 2023
@Aunity Aunity closed this as completed Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants