Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
inputRedirect syntax (Read 2566 times)
kai42
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 3
inputRedirect syntax
Oct 28th, 2007 at 1:43pm
 
Hi,

when I try to run the following batch file:
[code]
inputRedirect={};
inputRedirect["01"]="Universal";
inputRedirect["02"]="C:\Program Files\HYPHY_Win32\clpP.fas";
inputRedirect["03"]="None";
inputRedirect["04"]="Default";
inputRedirect["05"]="Default";
inputRedirect["06"]="C:\Program Files\HYPHY_Win32\test.tre";
inputRedirect["07"]="Node15";
inputRedirect["08"]="1";
ExecuteAFile("C:\Program Files\HYPHY_Win32\TemplateBatchFiles\TestBranchDNDS.bf", inputRedirect);[/code]

.... I get the following error:
[code]
Error:Not a valid (or duplicate) option: '1' passed to Choice List (with multiple selections) 'Choose the branch to test' using redirected stdin input
Current BL Command:Choice List for Choose the branch to test with choice list:NO_SKIP. Store result in bOption[/code]

How can I (can I?) properly put branch/parameter choices in the inputRedirect array?

Thanks a lot in advance for any hints....

Kai
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: inputRedirect syntax
Reply #1 - Oct 28th, 2007 at 2:39pm
 
Dear Kai,

Try using "" (empty string) as the value of the input string indexed ["08"]; an empty string signals to HyPhy that the multiple selection list is finished.

Cheers,
Sergei
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
kai42
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 3
Re: inputRedirect syntax
Reply #2 - Oct 28th, 2007 at 3:13pm
 
Dear Sergei,

yes, I tried that before, but then I get:

"Error:Ran out of input in buffer during a redirected standard input read.
Current BL Command:Choice List for Parameters to test: with choice list:SKIP_NONE. Store result in paramSpec"

(.bf currently reads:
[code]inputRedirect={};
inputRedirect["01"]="Universal";
inputRedirect["02"]="C:\Program Files\HYPHY_Win32\clpP.fas";
inputRedirect["03"]="None";
inputRedirect["04"]="Default";
inputRedirect["05"]="Default";
inputRedirect["06"]="C:\Program Files\HYPHY_Win32\test.tre";
inputRedirect["07"]="Node15";
inputRedirect["08"]="";
ExecuteAFile("C:\Program Files\HYPHY_Win32\TemplateBatchFiles\TestBranchDNDS.bf", inputRedirect);[/code]

?
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: inputRedirect syntax
Reply #3 - Oct 28th, 2007 at 3:44pm
 
Dear Kai,

You need to add further options to the input list (both the names of the parameters to test and the empty string to terminate the selection). It helps to run through the analysis interactively and record every choice you make, to put them into the input list.

Cheers,
Sergei
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
kai42
YaBB Newbies
*
Offline


Feed your monkey!

Posts: 3
Re: inputRedirect syntax
Reply #4 - Oct 28th, 2007 at 4:11pm
 
Dear Sergei,
thanks - gotcha this time!
works perfectly!

Bests
Kai
Back to top
 
 
IP Logged