private final TreePanel _tp;
private static final BufferedImage PLACEHOLDER = new BufferedImage( 1, 1, BufferedImage.TYPE_INT_RGB );
+ private final static boolean DEBUG = false;
public ImageLoader( final TreePanel tp ) {
_tp = tp;
|| uri_str.endsWith( ".gif" ) || uri_str.endsWith( ".bmp" ) ) ) {
image_map.put( uri_str, PLACEHOLDER );
BufferedImage bi = null;
- if ( !Constants.__RELEASE && !Constants.__SNAPSHOT_RELEASE ) {
- System.out.println( "accessing:" + uri );
+ if ( DEBUG ) {
+ System.out.println( "accessing: " + uri );
}
try {
bi = ImageIO.read( uri.getValue().toURL() );
try {
infer();
}
- catch ( InterruptedException e ) {
+ catch ( final InterruptedException e ) {
// TODO need to handle this exception SOMEHOW!
// TODO Auto-generated catch block
e.printStackTrace();
else if ( my_s.equals( GOSLIM_CANDIDA_STR ) ) {
_type = Type.GOSLIM_CANDIDA;
}
+ else if ( my_s.equals( GOSLIM_ASPERGILLUS_STR ) ) {
+ _type = Type.GOSLIM_ASPERGILLUS;
+ }
else if ( my_s.equals( GOSLIM_PLANT_STR ) ) {
_type = Type.GOSLIM_PLANT;
}
else if ( my_s.equals( UNVETTED_STR ) ) {
_type = Type.UNVETTED;
}
+ else if ( my_s.equals( MF_NEEDS_REVIEW_STR ) ) {
+ _type = Type.MF_NEEDS_REVIEW;
+ }
else {
throw new IllegalArgumentException( "unknown GO subset type: " + my_s );
}
case GOSLIM_PLANT:
sb.append( GOSLIM_PLANT_STR );
break;
+ case GOSLIM_ASPERGILLUS:
+ sb.append( GOSLIM_ASPERGILLUS_STR );
+ break;
case GOSLIM_YEAST:
sb.append( GOSLIM_YEAST_STR );
break;
case GOSLIM_POMBE:
sb.append( GOSLIM_POMBE_STR );
break;
+ case MF_NEEDS_REVIEW:
+ sb.append( MF_NEEDS_REVIEW_STR );
+ break;
+ case HIGH_LEVEL_ANNOTATION_QC:
+ sb.append( HIGH_LEVEL_ANNOTATION_QC_STR );
+ break;
+ case UNVETTED:
+ sb.append( UNVETTED_STR );
+ break;
default:
new AssertionError( "unknown type: " + getType() );
}
public static final String GOSLIM_PIR_STR = "goslim_pir";
public static final String GOSUBSET_PROK_STR = "gosubset_prok";
public static final String GOSLIM_CANDIDA_STR = "goslim_candida";
+ public static final String GOSLIM_ASPERGILLUS_STR = "goslim_aspergillus";
public static final String GOSLIM_PLANT_STR = "goslim_plant";
public static final String GOSLIM_YEAST_STR = "goslim_yeast";
public static final String GOSLIM_POMBE_STR = "goslim_pombe";
public static final String HIGH_LEVEL_ANNOTATION_QC_STR = "high_level_annotation_qc";
public static final String UNVETTED_STR = "unvetted";
+ public static final String MF_NEEDS_REVIEW_STR = "mf_needs_review";
public Type getType();
GOSLIM_PIR,
GOSUBSET_PROK,
GOSLIM_CANDIDA,
+ GOSLIM_ASPERGILLUS,
GOSLIM_PLANT,
GOSLIM_YEAST,
GOSLIM_POMBE,
HIGH_LEVEL_ANNOTATION_QC,
- UNVETTED;
+ UNVETTED,
+ MF_NEEDS_REVIEW;
}
}
}
final StringBuilder stdout = command_executor.getStandardOutputFromCommand();
final StringBuilder stderr = command_executor.getStandardErrorFromCommand();
- if ( stdout == null || stdout.length() < 2 ) {
+ if ( ( stdout == null ) || ( stdout.length() < 2 ) ) {
throw new IOException( "MAFFT program did not produce any output, command: " + my_opts );
}
_error = stderr.toString();
randomization = "yes, seed = " + random_number_seed_for_fitch_parsimony;
}
else {
- domain_parsimony.executeFitchParsimonyOnBinaryDomainCombintion( false );
+ domain_parsimony.executeFitchParsimonyOnBinaryDomainCombintion( true );
}
SurfacingUtil.writeMatrixToFile( domain_parsimony.getGainLossMatrix(), outfile_name
+ surfacing.PARSIMONY_OUTPUT_GL_SUFFIX_FITCH_BINARY_COMBINATIONS, Format.FORESTER );