HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy feedback >> HYPHY windows command-line version
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1349207068

Message started by Michael on Oct 2nd, 2012 at 12:44pm

Title: HYPHY windows command-line version
Post by Michael on Oct 2nd, 2012 at 12:44pm
Hi, is it possible to run HYPHY from the command line using the the Windows version 2.1.2?

I want to incorporate HYPHY into an external program, similarly to what MEGA5 appears to do, and therefore need to shell to it without launching the GUI.

Title: Re: HYPHY windows command-line version
Post by Sergei on Oct 2nd, 2012 at 1:06pm
Hi Michael,

If you have cygwin (or another Linux compatibility layer) installed on your Windows machine, you should be able to run HyPhy (and any other command line program) from it, after you compile it. Sorry there isn't a simpler solution at the moment.

Sergei

Title: Re: HYPHY windows command-line version
Post by Michael on Oct 2nd, 2012 at 1:15pm
Thanks very much :), I will try that.

Title: Re: HYPHY windows command-line version
Post by Sergei on Oct 2nd, 2012 at 1:17pm
Hi Michael,

Good luck. Let me know if this works. You will want to get the latest HyPhy source code from Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login and then use CMAKE (a free tool that you may need to download separately) to compile HyPhy.

Sergei

Title: Re: HYPHY windows command-line version
Post by Michael on Oct 4th, 2012 at 6:02am
Hi, so I managed to get the HYPHYMP target to compile (the Unix Cmake version, not the Windows) on Windows under cygwin, unfortunately I have a problem now with the paths that I can't seem fix:

[code]
C:\>C:\dev\test\hyphy\HYPHYMP.exe batch.bf
Error:
Could not read command file in ExecuteAFile.
Original path: 'C:/dev/test/hyphy/TemplateBatchFiles/PARRIS.bf'.
Expanded path: '/cygdrive/c/C//dev/test/hyphy/TemplateBatchFiles/PARRIS.bf'

Function call stack
1 : ExecuteAFile from file "C:/dev/test/hyphy/TemplateBatchFiles/PARRIS.bf" using basepath /cygdrive/c/.
reading input from inputRedirect
{"01":"Universal",
"02":"1",
"03":"C:/coding_finalout"}
-------
[/code]

The problem appears to be the basepath ("/c/cygdrive/" - probably because I have compiled under cygwin): it is prepended to the path I specify in my batch file (see Expanded path). Is there a way, preferably without modifying the source code, to change the basepath to be the empty string ""?

I want it to be able run on any Windows machine, so I don't want a fixed path. Thank you for your help.

Title: Re: HYPHY windows command-line version
Post by Sergei on Oct 8th, 2012 at 11:47am
Hi Michael,

You can specify BASEPATH=path and LIBPATH=path command line arguments that will replace the compile time default.
LIBPATH is where HyPhy will look for its Standard Analyses (i.e. the TemplateBatchFiles directory), while BASEPATH is the path prefix.

I have not tested this build however, so it may not work as expected. If the issue persists, let me know and I'll see what I can do to fix it.

Sergei

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.