HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy bugs >> Error when running GARD analysis on linux cluster
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1382545035

Message started by Kurt Wollenberg on Oct 23rd, 2013 at 9:17am

Title: Error when running GARD analysis on linux cluster
Post by Kurt Wollenberg on Oct 23rd, 2013 at 9:17am
Hello:

I have been trying to run a GARD analysis on our linux cluster so that I can use the required mpi environment. I get an error when the program tries to write an output file to the lib/hyphy/TemplateBatchFiles directory. This also happens when I try to run SBP analysis. I have noticed an odd behavior when trying to set up the runs. For GARD I get the prompt

Please select the file you want to use (or press ENTER to return to the list of analysis types):Initialized GARD on 4 MPI nodes.
Population size is 6 models

When I type in the filename and path I get

/usr/local/stow/hyphy/lib/hyphy/TemplateBatchFiles/Nucleotide file to screen::

So I retype the filename and path and things proceed looking like they should (I get prompts for options that make sense). Then when the program tries to run I get the error

/usr/local/stow/hyphy/lib/hyphy/TemplateBatchFiles/Save results to::Error:

Master node received an error:Could not create/open output file at path '/usr/local/stow/hyphy/lib/hyphy/TemplateBatchFiles/1'. in call to fprintf(

Function call stack
1 : fprintf(PROMPT_FOR_FILE,CLEAR_FILE,KEEP_OPEN)

Why does the program try to write output to a directory which doesn't exist in /TemplateBatchFiles? Any ideas how I managed to invoke this behavior?


Title: Re: Error when running GARD analysis on linux cluster
Post by Sergei on Oct 31st, 2013 at 3:28pm
Hi Kurt,

The best guess I have is that the prompts and the responses are off by 1:

1). You type the file path twice : HyPhy will prompt for a pathname for a second time if it doesn't find the path specified the first time
2). The path it tries to write to (/usr/local/stow/hyphy/lib/hyphy/TemplateBatchFiles/1) seems to be using the numeric response ('1') from the previous option.

Sometimes this happens with MPI environments (e.g. buffered output to the console etc).

Try this

1). (echo option1; echo option 2; echo option 3...; echo option N) | start HYPHYMPI /path/to/GARD.bf
or
2). Write a wrapper file for GARD following the steps explained here : Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login Login and then simply call HyPhy with that script as the command line argument (no inputs should be needed).

Sergei

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