-
Notifications
You must be signed in to change notification settings - Fork 11
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
New Gromacs User, Many Errors #126
Comments
The MDAnalysis problem is known (see MDAnalysis/mdanalysis#2938) and you found the correct workaround. Working in a conda environment is an excellent idea. For anything else, please
With installation issues it is important to keep track of everything that you're doing. Copy and paste everything into a text file. In your case, I'd suggest you just start with a fresh conda env with Python 2.7 (Python 3 is not supported, see #84 ) conda create -c conda-forge -n mdpow python=2.7 numpy scipy 'matplotlib<3.3' 'mdanalysis<2' 'mdanalysistests<2' pyyaml
conda activate mdpow
pip install gromacswrapper
git clone https://github.com/Becksteinlab/MDPOW.git
pip install ./MDPOW Then see if it installed with mdpow-equilibrium --help
|
- removed pip/pypi instructions (no pypi package published) - show conda with Python 2.7 - in response to #126
- updated README - updated INSTALL - removed pip/pypi instructions (no pypi package published) - show instructions for conda with Python 2.7 - in response to #126
I updated the INSTALL instructions, too. |
Thank you for your quick response, I greatly appreciate your assistance.
output: (from the mdpow-equilibirum --help command, everything prior was fine I do believe)
This is what has been confusing me, because I have checked to see if MDAnalysis is installed, and it appears as though it is:
I also checked to see if mdpow was installed properly and it looks like it is too:
Any idea why it doesn't want to acknowledge the MDAnalysis package? Thanks again. :) |
There's an old installation of MDPOW (and possibly other stuff) in Look at the output of
Your MDAnalysis installation is outdated. This should be version 1.0.0. Where is it installed? import MDAnalysis
print(MDAnalysis.__file__) should be under your anaconda env. EDIT: See below – installation of 0.20.1 instead of 1.0.0 is a bug MDAnalysis/mdanalysis#3105 |
Okay, so I restarted my terminal and went back into the environment and that error no longer occurs (I get the correct -help output).
Everything looks good with those locations now? So I think that problem with MDAnalysis not being found has solved. However, my version is still 0.20.1
Why would this be the case? |
Maybe
? |
Btw, what operating system are you running? Can you show the output from starting
just to see if there's a weird combo of O/S & python for which for some reason no 1.0.0 conda package is available.) |
And run
|
I have just realised why it was outputting that error about MDA not found. It only works when I don't source my gromacs... Do you think the location of my gromacs is causing errors? because surely I am going to need to source it at some point :/ |
... oops, I have 0.20.1 too! I'll have to look into this on MDAnalysis's side. I guess for right now, 0.20.1 should work... (fingers crossed, it's not super-essential for MDPOW IIRC.) |
Your Uninstall your old MDPOW installation (always a good idea). I'd also install GROMACS in a dedicated directory that's not on the normal PATH, e.g. |
Okay, thank you so much for your help! |
I opened MDAnalysis/mdanalysis#3105 for the 0.20.1 version of MDAnalysis. |
Okay, so I reinstalled my gromacs and I am able to source it and run the -help mdpow command. However, when doing the tutorial, I run into error messages that were encountered here: #96 I encounter these errors (very similar to that in the previous thread I linked)
To preemptively answer some questions you may ask (similar to the thread I linked):
Again, I greatly appreciate your assistance in troubleshooting this. |
The user in the linked thread said she had installed the package on her desktop and that was causing the errors? I think I built gromacs from my desktop, but I source it from Any guidance you can provide will be greatly appreciated. |
- fixes #126 - GROMACS 2020 does not allow starting a simulation with flag -append and throws an error - update CHANGES
I do believe it worked! Was it because of the gromacs version?
However the next step has an mdrun error too, would you recommend that I downgrade my gromacs to one of the known supported versions? Input: Output (of the step that fails): Reading file em.tpr, VERSION 2020 (single precision) Program: gmx mdrun, version 2020 Fatal error: For more information and tips for troubleshooting, please check the GROMACS
|
This syntax with
No, you should not downgrade Gromacs, we should make it work with the more recent versions.
I've got the same error some time ago, which was reported in #119.
For the EM step, Gromacs uses all threads available on your computer. In some cases, the number of threads is not compatible with the default domain decomposition, and currently there is no way to control it. Solving #119 should fix this. In my case, a workaround was to run the simulation on another machine, with a different number of threads (8 instead of 20) which was compatible with the default domain decomposition. |
I see, thank you very much for your input. |
In the .yml file, there is a section, shown below: |
You should definitely try to set this |
You're right, it doesn't apply to the EM step. |
Hi again 😫. I'm trying to run the package on quite a small unusual molecule and I believe that my .itp file is correct, however, when I run:
I get error messages implying that the force field has not been adapted to the new "residue":
I assume grumpp_qtot is failing because of these errors, or should I change my qtot to an integer, I didn't think this was actually essential. I was also under the impression that mymolecule.itp was incorporated automatically by the package to the top of the topology with #include. Here is my .ipt and .yml file
My .yml file: DEFAULT:
qscripts: local.sh
FEP:
maxwarn: 0
mdp: bar_opls.mdp
method: BAR
qscript: local.sh
runlocal: true
runtime: 5000
FEP_schedule_Coulomb:
couple_lambda0: vdw-q
couple_lambda1: vdw
description: dis-charging vdw+q --> vdw
label: Coul
lambdas: 0, 0.25, 0.5, 0.75, 1.0
name: Coulomb
sc_alpha: 0
sc_power: 1
sc_sigma: 0.3
FEP_schedule_VDW:
couple_lambda0: vdw
couple_lambda1: none
description: decoupling vdw --> none
label: VDW
lambdas: 0.0, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9,
0.95, 1
name: vdw
sc_alpha: 0.5
sc_power: 1
sc_sigma: 0.3
MD_NPT:
mdp: NPT_opls.mdp
qscript: local.sh
runlocal: true
runtime: 50000
MD_relaxed:
mdp: NPT_opls.mdp
qscript: local.sh
runlocal: true
runtime: 5
energy_minimize:
mdp: em_opls.mdp
mdrun:
maxthreads: None
nice: 19
stepout: 1000
verbose: true
setup:
boxtype: dodecahedron
distance: None
forcefield: OPLS-AA
gromacsoutput: false
itp: "/Users/mark/Desktop/diaz/diaz.itp"
maxwarn: 0
molecule: dia
name: diaz
prm: None
solventmodel: tip4p
structure: "/Users/mark/Desktop/diaz/diaz.pdb" Thank you again for any assistance you provide; I appreciate that these questions may seem very trivial an experienced user. EDIT (@orbeckst): formatting |
- remove -append from GROMACS run options - user reports in #126 that this PR fixed issue
Reopening — sorry, PR #127 only solved the append problem. |
@Ntr9999 did you manage to run the benzene example? Ideally I'd like to hear that this all worked before looking into anything else. If the maxthreads issue #119 is a problem you can do one of two things: make the box much bigger (so that Gromacs is happy to run it on more cores), by increasing the min distance, or try out the code in branch emin-maxthreads (PR #128). Can you open a new issue for your own data so that we can deal with different issues in self contained blocks, please? |
I didn't run the FEP, but I guess you're right in that it makes sense to check it works first. I'll do this asap.
I think you made a slight error in the code, when I remove the comma at the end of the line it works.
I will do this yes, my apologies. |
It worked and gave me reasonable numerical values, but outputted errors at the end. For the last step, Output:
Thanks again for the assistance. |
Overall it looks as if the simulation aspects are working but the analysis stage is broken. Admittedly, I don't think that we have been using the analysis scripts a lot lately (@iorga @VOD555 ??); I think we mostly wrote code based on alchemlyb. Our recent paper S. Fan, B. I. Iorga, and O. Beckstein, “Prediction of octanol-water partition coefficients for the SAMPL6- log P molecules using molecular dynamics simulations with OPLS-AA, AMBER and CHARMM force fields,” Journal of Computer-Aided Molecular Design, vol. 34, pp. 543–560, 2020. doi: 10.1007/s10822-019-00267-z has more details (and input files at https://github.com/Becksteinlab/SAMPL6_logP_data). DeltaA should contain plots for water and octanol... IIRC. I don't think that the backend error is responsible for the crash... but would need to look into it (and it shouldn't happen). If you raise a new issue for this particular problem then hopefully someone can get to it. Include as much information to reproduce — the more we can copy and paste instructions the more likely someone will attempt to reproduce it. |
None of the questions are trivial — it's just that MDPOW is not very polished and it's hard to keep it up-to-date. When we use it "it just works™" (most of the time...). We definitely would like others to be able to use it so thank you for working with us. |
Hi,
I am a new Gromacs user and came across your package which has the potential to be very useful to me. Unfortunately, I have had problems using MDPOW. I'm pretty sure Gromacs is installed properly, is my location okay (/usr/local/bin/GMXRC)?
MDAnalysis seems to be causing problems too, when I try to install it, both with MDPOW install and individually, something doesn't work, I don't know if this is because there is a new release soon or something. I managed to fudge the packages together using conda and pip for MDA and MDAT respectively, because it is the only thing that worked. The MDAnalysisTests were failing...Most of the time I have 140 errors in 5 seconds and it stopped... then I think I changed my matplotlib version to <3.3 and it fixed it partially (TypeError: use() got an unexpected keyword argument 'warn')? I was able to run the tests through to completion.
But then when I try to use the MDPOW package, it tells me I don't gave MDA installed.. even though I could check the version and output 1.0.0. Then somehow I managed to get it to acknowledge the package existed (I cannot reproduce this step idk what I did)
When I thought had I finally done it.. I got a syntax error, coming from one of the packages I installed. Unfortunately I do not have the error messages from this last bit, because I changed something and I was unable to reproduce it.
I am quite new to computational biology (as I'm sure you can tell), but I would greatly appreciate any help or pointers on what I might have messed up on. I don't know whether all the global packages are messing things up, I have messed around quite a lot with installations on my laptop. I was doing everything here in a conda env though.
This package looks super useful to me but I cannot for the life of me get it to work.
Again, thanks for any help, anything will be greatly appreciated, I have spent many hours trying to solve this.
The text was updated successfully, but these errors were encountered: