private final MainFrameApplication _mf;
private final PhylogeneticInferenceOptions _options;
private final List<Sequence> _seqs;
- private final boolean DEBUG = true;
+ private final boolean DEBUG = true;
public final static String MSA_FILE_SUFFIX = ".aln";
public final static String PWD_FILE_SUFFIX = ".pwd";
private Msa inferMsa() throws IOException, InterruptedException {
final File temp_seqs_file = File.createTempFile( "__msa__temp__", ".fasta" );
if ( DEBUG ) {
- System.out.println();
- System.out.println( "temp file: " + temp_seqs_file );
- System.out.println();
+ System.out.println();
+ System.out.println( "temp file: " + temp_seqs_file );
+ System.out.println();
}
//final File temp_seqs_file = new File( _options.getTempDir() + ForesterUtil.FILE_SEPARATOR + "s.fasta" );
final BufferedWriter writer = new BufferedWriter( new FileWriter( temp_seqs_file ) );
"Failed to Calculate MSA",
JOptionPane.ERROR_MESSAGE );
if ( DEBUG ) {
- e.printStackTrace();
+ e.printStackTrace();
}
return;
}
"Unexpected Exception During MSA Calculation",
JOptionPane.ERROR_MESSAGE );
if ( DEBUG ) {
- e.printStackTrace();
+ e.printStackTrace();
}
return;
}
return;
}
if ( DEBUG ) {
- System.out.println( msa.toString() );
- System.out.println( MsaMethods.calcBasicGapinessStatistics( msa ).toString() );
+ System.out.println( msa.toString() );
+ System.out.println( MsaMethods.calcBasicGapinessStatistics( msa ).toString() );
}
final MsaMethods msa_tools = MsaMethods.createInstance();
if ( _options.isExecuteMsaProcessing() ) {
}
}
if ( DEBUG ) {
- System.out.println( msa_tools.getIgnoredSequenceIds() );
- System.out.println( msa.toString() );
- System.out.println( MsaMethods.calcBasicGapinessStatistics( msa ).toString() );
+ System.out.println( msa_tools.getIgnoredSequenceIds() );
+ System.out.println( msa.toString() );
+ System.out.println( MsaMethods.calcBasicGapinessStatistics( msa ).toString() );
}
_msa = msa;
}
\r
public class ProcessPool {\r
\r
+ private final static boolean DEBUG = true;\r
final static private ArrayList<ProcessRunning> _processes = new ArrayList<ProcessRunning>();\r
\r
public synchronized ProcessRunning getProcessByIndex( final int i ) {\r
final ProcessRunning p = ProcessRunning.createInstance( name );\r
final int id = p.getId();\r
if ( getProcessById( id ) != null ) {\r
- throw new IllegalStateException( "process with id " + id + "already exists" );\r
+ throw new IllegalStateException( " process with id " + id + "already exists" );\r
}\r
getProcesses().add( p );\r
+ if ( DEBUG ) {\r
+ System.out.println( "added: " + p );\r
+ }\r
return id;\r
}\r
\r
public synchronized boolean removeProcess( final int id ) {\r
final int i = getProcessIndexById( id );\r
if ( i >= 0 ) {\r
+ if ( DEBUG ) {\r
+ final ProcessRunning p = getProcessById( id );\r
+ System.out.println( " removing: " + p );\r
+ }\r
getProcesses().remove( i );\r
return true;\r
}\r