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

It shows Warning...will it create some issue ? #2

Closed
debanjansen48 opened this issue Nov 9, 2020 · 12 comments
Closed

It shows Warning...will it create some issue ? #2

debanjansen48 opened this issue Nov 9, 2020 · 12 comments
Labels
question Further information is requested

Comments

@debanjansen48
Copy link

debanjansen48 commented Nov 9, 2020

Hope installed it.. But returns following WARNING...

$:amber.python -m pip install gmx_MMPBSA
Collecting gmx_MMPBSA
Downloading gmx_MMPBSA-1.0.0-py3-none-any.whl (135 kB)
|████████████████████████████████| 135 kB 962 kB/s
Installing collected packages: gmx-MMPBSA
WARNING: The scripts gmx_MMPBSA and gmx_MMPBSA_gui are installed in '/home/debanjan/Amber/amber20/miniconda/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed gmx-MMPBSA-1.0.0

when I call it from the installed directory " '/home/debanjan/Amber/amber20/miniconda/bin" it returns following error
(base) debanjan@debanjan:/Amber/amber20/miniconda/bin$ gmx
gmx gmx_d gmx_MMPBSA gmx_MMPBSA_gui
(base) debanjan@debanjan:
/Amber/amber20/miniconda/bin$ gmx_MMPBSA_gui
Traceback (most recent call last):
File "/home/debanjan/Amber/amber20/miniconda/lib/python3.8/site-packages/GMXMMPBSA/app.py", line 24, in
from GMXMMPBSA import main
File "/home/debanjan/Amber/amber20/miniconda/lib/python3.8/site-packages/GMXMMPBSA/main.py", line 44, in
from GMXMMPBSA.createinput import create_inputs
File "/home/debanjan/Amber/amber20/miniconda/lib/python3.8/site-packages/GMXMMPBSA/createinput.py", line 43, in
from parmed.amber.mdin import Mdin
ModuleNotFoundError: No module named 'parmed'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./gmx_MMPBSA_gui", line 5, in
from GMXMMPBSA.app import gmxmmpbsa_gui
File "/home/debanjan/Amber/amber20/miniconda/lib/python3.8/site-packages/GMXMMPBSA/app.py", line 30, in
raise ImportError('Could not import Amber Python modules. Please make sure '
ImportError: Could not import Amber Python modules. Please make sure you have sourced /home/debanjan/Amber/amber20/amber.sh (if you are using sh/ksh/bash/zsh) or /home/debanjan/Amber/amber20/amber.csh (if you are using csh/tcsh)
(base) debanjan@debanjan:~/Amber/amber20/miniconda/bin$ gmx_MMPBSA
Traceback (most recent call last):
File "/home/debanjan/Amber/amber20/miniconda/lib/python3.8/site-packages/GMXMMPBSA/app.py", line 24, in
from GMXMMPBSA import main
File "/home/debanjan/Amber/amber20/miniconda/lib/python3.8/site-packages/GMXMMPBSA/main.py", line 44, in
from GMXMMPBSA.createinput import create_inputs
File "/home/debanjan/Amber/amber20/miniconda/lib/python3.8/site-packages/GMXMMPBSA/createinput.py", line 43, in
from parmed.amber.mdin import Mdin
ModuleNotFoundError: No module named 'parmed'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./gmx_MMPBSA", line 5, in
from GMXMMPBSA.app import gmxmmpbsa
File "/home/debanjan/Amber/amber20/miniconda/lib/python3.8/site-packages/GMXMMPBSA/app.py", line 30, in
raise ImportError('Could not import Amber Python modules. Please make sure '
ImportError: Could not import Amber Python modules. Please make sure you have sourced /home/debanjan/Amber/amber20/amber.sh (if you are using sh/ksh/bash/zsh) or /home/debanjan/Amber/amber20/amber.csh (if you are using csh/tcsh)
(base) debanjan@debanjan:~/Amber/amber20/miniconda/bin$

However parmed is installed
(base) debanjan@debanjan:/Amber/amber20/miniconda/bin$ parm
parmcal parmchk2 parmed
(base) debanjan@debanjan:
/Amber/amber20/miniconda/bin$ whereis parmed
parmed: /usr/local/bin/parmed /home/debanjan/Amber/amber20/bin/parmed

@Valdes-Tresanco-MS
Copy link
Owner

Please, check two things:

  • Open the executable (/home/debanjan/Amber/amber20/miniconda/bin/gmx_MMPBSA) with a text editor and show me the content.
  • run amber.python in a terminal and then show me the output when you enter the following line
    import parmed

@debanjansen48
Copy link
Author

debanjansen48 commented Nov 9, 2020 via email

@Valdes-Tresanco-MS
Copy link
Owner

Ok the problem is that amber.python does not detect the parmed module. This is probably because the python modules are not in the default path or the amber source has not been done correctly. Try adding this line to your .bashrc file
/home/debanjan/Amber/amber20/amber.sh

@Valdes-Tresanco-MS Valdes-Tresanco-MS added the question Further information is requested label Nov 9, 2020
@debanjansen48
Copy link
Author

debanjansen48 commented Nov 9, 2020 via email

@Valdes-Tresanco-MS
Copy link
Owner

Please, check the PYTHONPATH variable
echo $PYTHONPATH

@debanjansen48
Copy link
Author

debanjansen48 commented Nov 9, 2020 via email

@debanjansen48
Copy link
Author

debanjansen48 commented Nov 9, 2020 via email

@debanjansen48
Copy link
Author

debanjansen48 commented Nov 9, 2020 via email

@Valdes-Tresanco-MS
Copy link
Owner

Excellent. I will try to optimize the process for future reference.
I will add a section in the documentation for new users. Thanks for reporting the problem.
Enjoy it

@Valdes-Tresanco-MS
Copy link
Owner

Oh sorry I forgot the warning !!!
This warning is because pip installs the executables (gmx_MMPBSA and gmx_MMPBSA_gui) in */amber20/miniconda/bin.
You have two options to solve this:

Add this folder (*/amber20/miniconda/bin) to PATH:
export PATH="/home/mario/programs/amber20/miniconda/bin:$PATH"
or
initializing the environment of conda amber:
amber.conda init bash

You can deactivate like this:
conda deactivate

@debanjansen48
Copy link
Author

debanjansen48 commented Nov 9, 2020 via email

@Valdes-Tresanco-MS
Copy link
Owner

Sorry, only amber force fields are supported at the moment. We will do our best to implement the Charmm force field.
I'm not sure if OPLS is supported by Amber, I'll check

  1. Actually it refers to the mol2 file that is obtained from the ligand parameterization (small molecule) with antechamber. This file contains the data (charges, type and bond order, atom type, etc.) to generate the ligand topology.

If you want to do the Single trajectory approach then you only require the complex dynamics and if the ligand is a small molecule the mol2 file. If, on the other hand, you want to do it using Multiple trajectory, then you require the complex, receptor and ligand data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants