X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fapplication%2Fsurfacing.java;h=2218f404333442fed21e5ed8aa6ccac407efacea;hb=5309073b8da93adc2ece844bb84ff2735805b38c;hp=2ef8817511387e60d6909930164eac9cb1f4d3e5;hpb=8c1f432f0215e395d15026fcf2bd591e5f13a62f;p=jalview.git diff --git a/forester/java/src/org/forester/application/surfacing.java b/forester/java/src/org/forester/application/surfacing.java index 2ef8817..2218f40 100644 --- a/forester/java/src/org/forester/application/surfacing.java +++ b/forester/java/src/org/forester/application/surfacing.java @@ -270,7 +270,7 @@ public class surfacing { private static final String LOG_FILE_SUFFIX = "_log.txt"; private static final String DATA_FILE_SUFFIX = "_domain_combination_data.txt"; private static final String DATA_FILE_DESC = "#SPECIES\tPRTEIN_ID\tN_TERM_DOMAIN\tC_TERM_DOMAIN\tN_TERM_DOMAIN_PER_DOMAIN_E_VALUE\tC_TERM_DOMAIN_PER_DOMAIN_E_VALUE\tN_TERM_DOMAIN_COUNTS_PER_PROTEIN\tC_TERM_DOMAIN_COUNTS_PER_PROTEIN"; - private static final INDIVIDUAL_SCORE_CUTOFF INDIVIDUAL_SCORE_CUTOFF_DEFAULT = INDIVIDUAL_SCORE_CUTOFF.FULL_SEQUENCE; //TODO look at me! change? + private static final INDIVIDUAL_SCORE_CUTOFF INDIVIDUAL_SCORE_CUTOFF_DEFAULT = INDIVIDUAL_SCORE_CUTOFF.FULL_SEQUENCE; //TODO look at me! change? public static final String INDEPENDENT_DC_GAINS_FITCH_PARS_COUNTS_OUTPUT_SUFFIX = "_indep_dc_gains_fitch_counts.txt"; public static final String INDEPENDENT_DC_GAINS_FITCH_PARS_DC_OUTPUT_SUFFIX = "_indep_dc_gains_fitch_lists.txt"; public static final String INDEPENDENT_DC_GAINS_FITCH_PARS_DC_FOR_GO_MAPPING_OUTPUT_SUFFIX = "_indep_dc_gains_fitch_lists_for_go_mapping.txt"; @@ -2024,12 +2024,13 @@ public class surfacing { "Average of proteins with a least one domain assigned: " + ( 100 * protein_coverage_stats.arithmeticMean() ) + "% (+/-" + ( 100 * protein_coverage_stats.sampleStandardDeviation() ) + "%)" ); - ForesterUtil.programMessage( PRG_NAME, "Range of proteins with a least one domain assigned: " + 100 - * protein_coverage_stats.getMin() + "%-" + 100 * protein_coverage_stats.getMax() + "%" ); + ForesterUtil.programMessage( PRG_NAME, "Range of proteins with a least one domain assigned: " + + ( 100 * protein_coverage_stats.getMin() ) + "%-" + ( 100 * protein_coverage_stats.getMax() ) + + "%" ); log( "Average of prot with a least one dom assigned : " + ( 100 * protein_coverage_stats.arithmeticMean() ) + "% (+/-" + ( 100 * protein_coverage_stats.sampleStandardDeviation() ) + "%)", log_writer ); - log( "Range of prot with a least one dom assigned : " + 100 * protein_coverage_stats.getMin() + "%-" - + 100 * protein_coverage_stats.getMax() + "%", log_writer ); + log( "Range of prot with a least one dom assigned : " + ( 100 * protein_coverage_stats.getMin() ) + "%-" + + ( 100 * protein_coverage_stats.getMax() ) + "%", log_writer ); } catch ( final IOException e2 ) { ForesterUtil.fatalError( surfacing.PRG_NAME, e2.getLocalizedMessage() ); @@ -2306,7 +2307,7 @@ public class surfacing { System.out.print( ", not mapped domains = " + mapping_results.getSumOfFailures() ); if ( total_domains > 0 ) { System.out.println( ", mapped ratio = " - + ( 100 * mapping_results.getSumOfSuccesses() / total_domains ) + "%" ); + + ( ( 100 * mapping_results.getSumOfSuccesses() ) / total_domains ) + "%" ); } else { System.out.println( ", mapped ratio = n/a (total domains = 0 )" ); @@ -2440,7 +2441,7 @@ public class surfacing { for( final Entry entry : all_genomes_domains_per_potein_histo.entrySet() ) { sum += entry.getValue(); } - final double percentage = 100.0 * ( sum - all_genomes_domains_per_potein_histo.get( 1 ) ) / sum; + final double percentage = ( 100.0 * ( sum - all_genomes_domains_per_potein_histo.get( 1 ) ) ) / sum; ForesterUtil.programMessage( PRG_NAME, "Percentage of multidomain proteins: " + percentage + "%" ); log( "Percentage of multidomain proteins: : " + percentage + "%", log_writer ); } @@ -2488,12 +2489,12 @@ public class surfacing { } System.out.println( "--" ); } - for( int i = 0; i < input_file_properties.length; ++i ) { + for( final String[] input_file_propertie : input_file_properties ) { try { - intree.getNode( input_file_properties[ i ][ 1 ] ); + intree.getNode( input_file_propertie[ 1 ] ); } catch ( final IllegalArgumentException e ) { - ForesterUtil.fatalError( surfacing.PRG_NAME, "node named [" + input_file_properties[ i ][ 1 ] + ForesterUtil.fatalError( surfacing.PRG_NAME, "node named [" + input_file_propertie[ 1 ] + "] not present/not unique in input tree" ); } }