Needed it here too: warn user instead of dying if the R script cannot be executed

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3929 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2010-08-04 13:11:27 +00:00
parent 40ffe34686
commit bf60ed0b25
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ public class GenerateVariantClustersWalker extends RodWalker<ExpandingArrayList<
try { try {
Runtime.getRuntime().exec( rScriptCommandLine ); Runtime.getRuntime().exec( rScriptCommandLine );
} catch ( IOException e ) { } catch ( IOException e ) {
Utils.warnUser("Unable to execute the RScript command. While not critical to the calculations themselves, the script outputs a report that is extremely useful for confirming that the recalibration proceded as expected. We highly recommend trying to rerun the script manually if possible."); Utils.warnUser("Unable to execute the RScript command. While not critical to the calculations themselves, the script outputs a report that is extremely useful for confirming that the clustering proceded as expected. We highly recommend trying to rerun the script manually if possible.");
} }
} }
} }

View File

@ -243,7 +243,7 @@ public class VariantRecalibrator extends RodWalker<ExpandingArrayList<VariantDat
try { try {
Runtime.getRuntime().exec( rScriptCommandLine ); Runtime.getRuntime().exec( rScriptCommandLine );
} catch ( IOException e ) { } catch ( IOException e ) {
throw new StingException( "Unable to execute RScript command: " + rScriptCommandLine ); Utils.warnUser("Unable to execute the RScript command. While not critical to the calculations themselves, the script outputs a report that is extremely useful for confirming that the recalibration proceded as expected. We highly recommend trying to rerun the script manually if possible.");
} }
} }
} }