ccsb-scripps / AutoDock-Vina

AutoDock Vina
http://vina.scripps.edu
Apache License 2.0
617 stars 210 forks source link

output message hiding #137

Closed youngyanyoung closed 2 years ago

youngyanyoung commented 2 years ago

Hi, I've been trying to use python binding of vina. And here is my question: when I run docking in parallel, is there any way to hide only the docking output message.

diogomart commented 2 years ago

Hi, what is it exactly that you want to hide?

youngyanyoung commented 2 years ago

Thanks for replying! I want to hide the following message:

Computing Vina grid ... done. Performing docking (random seed: 1122952847) ... 0% 10 20 30 40 50 60 70 80 90 100% |----|----|----|----|----|----|----|----|----|----|


mode | affinity | dist from best mode | (kcal/mol) | rmsd l.b.| rmsd u.b. -----+------------+----------+---------- 1 -11.48 0 0 2 -11.44 3.325 4.943 3 -11.21 4.89 9.929

diogomart commented 2 years ago

I never tried this, but setting the verbosity to zero should do it.

from vina import Vina
v = Vina(verbosity=0)
youngyanyoung commented 2 years ago

It works. Thanks a lot!