src/Generic/driver/DocumentDriver.cpp
// run a perl script with the specified variables
// TODO: these probably shouldn't be unrecoverable, but for now they are

run a perl script with the specified variables
TODO: these probably shouldn't be unrecoverable, but for now they are
run a perl script with the specified variables TODO : these probably shouldn ' t be unrecoverable but for now they are
void DocumentDriver::invokeScoreScript()
{
	stageProcessTimer[Stage("score")].startTimer();
	std::string scoreScript = ParamReader::getRequiredParam("score_script");
	std::string keyDirStr = ParamReader::getRequiredParam("key_dir");
	std::string expDirStr = ParamReader::getRequiredParam("experiment_dir");
	string perl_binary = ParamReader::getParam("perl_binary");
	string runLine = (perl_binary.empty() ? "perl" : perl_binary) + string(" ");
	runLine += scoreScript;
	runLine += " " + keyDirStr;
	runLine += " " + expDirStr;
	int procRes = system(runLine.c_str());
	if(procRes!=0) {
		runLine += " failed!\n return value: ";
		char in[10];
		runLine += _itoa(procRes,in,10);
		throw UnrecoverableException("DocumentDriver::invokeScoreScript()", runLine);
	}
	stageProcessTimer[Stage("score")].stopTimer();
}
void DocumentDriver :: invokeScoreScript ( ) { stageProcessTimer [ Stage ( " " ) ] . startTimer ( ) ; std :: string scoreScript = ParamReader :: getRequiredParam ( " " ) ; std :: string keyDirStr = ParamReader :: getRequiredParam ( " " ) ; std :: string expDirStr = ParamReader :: getRequiredParam ( " " ) ; string perl_binary = ParamReader :: getParam ( " " ) ; string runLine = ( perl_binary . empty ( ) ? " " : perl_binary ) + string ( " " ) ; runLine += scoreScript ; runLine += " " + keyDirStr ; runLine += " " + expDirStr ; int procRes = system ( runLine . c_str ( ) ) ; if ( procRes != 0 ) { runLine += " \n " ; char in [ 10 ] ; runLine += _itoa ( procRes , in , 10 ) ; throw UnrecoverableException ( " " , runLine ) ; } stageProcessTimer [ Stage ( " " ) ] . stopTimer ( ) ; }
run a perl script with the specified variables
TODO: these probably shouldn't be unrecoverable, but for now they are
run a perl script with the specified variables TODO : these probably shouldn ' t be unrecoverable but for now they are
// score script is the actual perl file that does the scoring
 // key dir has the key apfs and the original sgms in directories
 // it's usually the directory that batch file is in
 // expdir is the same root experiment directory used by other stuff
