-
Notifications
You must be signed in to change notification settings - Fork 12
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
[TypeError: center() got an unexpected keyword argument 'pbc'] #43
Comments
Hi, This is due to an update in MDAnalysis, the newer versions do NOT have this |
Thank you very much for your prompt reply. The itp file that I used is shown in the following. [ moleculetype ] [bonds] 2 3 1 0.297 1965.26 3 4 1 0.304 2010.50 4 5 1 0.310 1672.18 5 6 1 0.336 1370.19 6 7 1 0.309 2139.18 7 8 1 0.346 15362.05 8 9 1 0.350 6271.65 6 10 1 0.263 3604.95 10 11 1 0.271 4276.60 11 12 1 0.344 14041.80 [angles] 2 3 4 1 128.54 16.93 3 4 5 1 127.16 19.55 4 5 6 1 123.17 16.89 5 6 7 1 70.6237 85.25 6 7 8 1 127.386 21.75 7 8 9 1 88.1504 60.27 5 6 10 1 126.06 16.37 7 6 10 1 122.15 13.52 6 10 11 1 85.1168 80.93 10 11 12 1 126.83 35.84 11 12 13 1 80.9223 76.02 |
The groups can be used for reducing the number of parameters to be optimized, while at the same time enhancing the consistency and physical relevance of the model. For example, in between the beads 1-6 all the bonds should in principle use the same equilibrium value and force constant -- because they represent the same chemical entities + the molecular context is quite similar -- so you can group them and the software will understand these bonded elements are related / identical parameters. You can see already that the parameters of your current model are pretty close for the bonded parameters of those bonds, which confirms this idea. Same principle applies to angles in between beads 1-6. SwarmCG, however, is not designed for helping us to decide about how bonded elements (bonds/angles/...) should be grouped or not. How the groups are formed in your ITP is entirely your choice. Then, about the error you encounter, this seems due to your ITP definition. I believe the bead number 13 is not bonded to the rest of the molecule (beads 1-12). The error message is not super clear about that, I will correct this! |
Dear Dr. @CharlyEmpereurmot , I have encountered another error during the SwarmCG run. I changed the mapping of CG for my polymer. First one:Program: gmx mdrun, version 2022 Fatal error: For more information and tips for troubleshooting, please check the GROMACS
|
### 做如下修改好像也行吧,不知道对不对:把pbc=None改成wrap=None。下面是MDanalysis给的注释:
|
分子轨迹处理用MDanalysis的话,好像周期性处理有问题,统计的键长有个别和盒子边长一样,比如15nm。用mdtraj处理分子轨迹更好吧?我用过mdtraj来计算键能,他的键长统计是正确的。另外pycgtool这个工具拟合平衡键长用的也是mdtraj工具处理分子轨迹,我用pycgtool来拟合MARTINI的键长也未见有误。所以用mdtraj提供的函数处理分子轨迹会更佳吧。 |
Hi,
When I tried to run the program with my polymers, the program gives out the error "TypeError: center() got an unexpected keyword argument 'pbc'".
How can I solve the problem?
Thank you.
The text was updated successfully, but these errors were encountered: