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

batch mode --dir option does not work on windows? #373

Open
caiyingchun opened this issue Jan 8, 2025 · 2 comments
Open

batch mode --dir option does not work on windows? #373

caiyingchun opened this issue Jan 8, 2025 · 2 comments

Comments

@caiyingchun
Copy link

Command
vina_1.2.5_win.exe --receptor d:/docking/protein.pdbqt --batch d:/docking/m1.pdbqt d:/docking/m2.pdbqt --dir poses --center_x 1.26 --center_y 0.81 --center_z 2.55 --size_x 40 --size_y 40 --size_z 40 --cpu 8 --exhaustiveness 12
was run on windows.
However, an error was rasied: Error: could not open "poses\d:/docking/m1_out.pdbqt" for writing. How to solve it? Thanks a lot.

@rwxayheee
Copy link
Collaborator

Hi @caiyingchun

Can confirm this is working on Mac/Linux but can be potentially problematic on Windows, if you have specified --batch with ligand paths that are separated with Forward Slashes (/). Likely, you were running these commands in PowerShell. At the moment, it seems like Vina expects the standard separator (Backslashes, ) for Windows. See the relevant codes here:
https://github.com/ccsb-scripps/AutoDock-Vina/blob/93a48162b724c77f81820b471e1d969e25291d2b/src/lib/utils.cpp#L26C1-L33C2

Added to Maintenance Release. We will review this issue and make updates in the near future.

@caiyingchun
Copy link
Author

@rwxayheee Hi, I confirmed that it worked well on Mac/Linux.

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