if ( ForesterUtil.isEmpty( path_to_mafft ) ) {
path_to_mafft = MsaCompactor.guessPathToMafft();
}
- if ( !ForesterUtil.isEmpty( path_to_mafft ) && MsaInferrer.isInstalled( path_to_mafft ) ) {
- ForesterUtil.programMessage( PRG_NAME, "using MAFFT at \"" + path_to_mafft + "\"" );
- }
- else {
- if ( ForesterUtil.isEmpty( path_to_mafft ) ) {
- ForesterUtil.fatalError( PRG_NAME, "no MAFFT executable found, use -\"" + PATH_TO_MAFFT_OPTION + "=<path to MAFFT>\" option" );
- }
- else {
- ForesterUtil.fatalError( PRG_NAME, "no MAFFT executable at \"" + path_to_mafft + "\"" );
- }
- }
+ checkPathToMafft( path_to_mafft );
}
MsaCompactor mc = null;
}
}
+ private static void checkPathToMafft( String path_to_mafft ) {
+ if ( !ForesterUtil.isEmpty( path_to_mafft ) && MsaInferrer.isInstalled( path_to_mafft ) ) {
+ ForesterUtil.programMessage( PRG_NAME, "using MAFFT at \"" + path_to_mafft + "\"" );
+ }
+ else {
+ if ( ForesterUtil.isEmpty( path_to_mafft ) ) {
+ ForesterUtil.fatalError( PRG_NAME, "no MAFFT executable found, use -\"" + PATH_TO_MAFFT_OPTION + "=<path to MAFFT>\" option" );
+ }
+ else {
+ ForesterUtil.fatalError( PRG_NAME, "no MAFFT executable at \"" + path_to_mafft + "\"" );
+ }
+ }
+ }
+
private static void printHelp() {
ForesterUtil.printProgramInformation( PRG_NAME,
PRG_DESC,