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

The "molname" parameter was passed incorrectly. #646

Closed
123chayu opened this issue Jan 2, 2025 · 7 comments
Closed

The "molname" parameter was passed incorrectly. #646

123chayu opened this issue Jan 2, 2025 · 7 comments

Comments

@123chayu
Copy link

123chayu commented Jan 2, 2025

python "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\martinize2" -f "D:\测试\3SN6_clean.pdb" -x D:\测试\Protein_Active_cg.pdb -o D:\测试\system.top

An error occurred while using the above command.How to deal with?

Traceback (most recent call last):
File "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\martinize2", line 1167, in
entry()
File "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\martinize2", line 1025, in entry
vermouth.NameMolType(deduplicate=not args.keep_duplicate_itp, molname=args.molname).run_system(system)
TypeError: init() got an unexpected keyword argument 'molname'

@csbrasnett
Copy link
Collaborator

hi, which version of martinize2 are you using for this please? Does the behaviour change if you give -name as an argument?

@123chayu
Copy link
Author

123chayu commented Jan 2, 2025

hi, which version of martinize2 are you using for this please? Does the behaviour change if you give -name as an argument?

python "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\martinize2" -f "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\3SN6_clean.pdb" -x "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\Protein_Active_cg.pdb" -o "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\system.top" -name Protein_Active_cg

INFO - general - Applying modification mapping ('C-ter',)
INFO - general - Applying modification mapping ('N-ter',)
INFO - general - Applying modification mapping ('C-ter',)
INFO - step - Averaging the coordinates.
INFO - step - Applying the links.
INFO - step - Placing the charge dummies.
Traceback (most recent call last):
File "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\martinize2", line 1167, in
entry()
File "D:\分子模拟\GoMartini\vermouth-martinize-master\bin\martinize2", line 1025, in entry
vermouth.NameMolType(deduplicate=not args.keep_duplicate_itp, molname=args.molname).run_system(system)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: NameMolType.init() got an unexpected keyword argument 'molname'

the same error !And the version of martinize2 that I'm using comes from the martinize2 file in the bin folder of the vermouth package on GitHub.
微信图片_20250102182825

@csbrasnett
Copy link
Collaborator

the -name argument for martinize2 was only introduced recently. The error raised suggests to me that you're using a new version of the martinize2 script but somehow haven't updated the rest of the vermouth package. I'd suggest installing vermouth in a fresh virtual environment and running from there, that should fix the issue you have

@csbrasnett
Copy link
Collaborator

hi @123chayu did you have success?

@123chayu
Copy link
Author

123chayu commented Jan 3, 2025 via email

@123chayu
Copy link
Author

123chayu commented Jan 4, 2025

您好,您成功了吗?

(vermouth) C:\Windows\system32>python "D:\Anaconda\envs\vermouth\Scripts\martinize2" -f "D:\测试\3SN6_clean.pdb" -o "D:\测试\system.top" -x "D:\测试\Protein_Active_cg"
INFO - step - Averaging the coordinates.
INFO - step - Applying the links.
INFO - step - Placing the charge dummies.
INFO - step - Sorting atomids
INFO - step - Writing output.
INFO - model - Disulfide bridge found between residues A-CYS77 and A-CYS162
INFO - model - Disulfide bridge found between residues A-CYS155 and A-CYS161
INFO - general - Please cite: Souza, P C T; Alessandri, R; Barnoud, J; Thallmair, S; Faustino, I; Gr眉newald, F; Patmanidis, I; Abdizadeh, H; Bruininks, B M H; Wassenaar, T A; Kroon, P C; Melcr, J; Nieto, V; Corradi, V; Khan, H M; Doma艅ski, J; Javanainen, M; Martinez-Seara, H; Reuter, N; Best, R B; Vattulainen, I; Monticelli, L; Periole, X; Tieleman, D P; de Vries, A H; Marrink, S J; Nature Methods 2021; 10.1038/s41592-021-01098-3
INFO - general - A martini should always be stirred, not shaken, so that the molecules lie sensuously on top of one another. -- Somerset Maugham

Yes! I did success! very thanks!
The problem indeed lies in the environment on which Vermouth depends. It is necessary to create a new virtual environment and configure the Python interpreter to version 3.9

@csbrasnett
Copy link
Collaborator

Great, glad it worked! Happy simulating!

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