X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fsurfacing%2FDomainCountsDifferenceUtil.java;h=a9643a89b9ef7a59fede3add2a4b36e1e7291c13;hb=e572f0142daf64409db0461f15215288137603f8;hp=8f9a2496a4747c02b4e5bb858bc66f739347b424;hpb=3d68fcd1fc4272b56546f78f3cbd437237af5cfa;p=jalview.git diff --git a/forester/java/src/org/forester/surfacing/DomainCountsDifferenceUtil.java b/forester/java/src/org/forester/surfacing/DomainCountsDifferenceUtil.java index 8f9a249..a9643a8 100644 --- a/forester/java/src/org/forester/surfacing/DomainCountsDifferenceUtil.java +++ b/forester/java/src/org/forester/surfacing/DomainCountsDifferenceUtil.java @@ -87,7 +87,7 @@ public final class DomainCountsDifferenceUtil { if ( high_copy_base_species.contains( high_copy_target_species ) || low_copy_species.contains( high_copy_target_species ) ) { throw new IllegalArgumentException( "species [" + high_copy_target_species - + "] appears in other list as well" ); + + "] appears in other list as well" ); } if ( min_diff < 0 ) { throw new IllegalArgumentException( "attempt to use negative addition [" + min_diff + "]" ); @@ -235,7 +235,7 @@ public final class DomainCountsDifferenceUtil { writeGoIdsToFile( passing_gos_writer, go_ids_of_passing_domains ); } - //FIXME really needs to be tested! + //FIXME really needs to be tested! private static void addCounts( final SortedMap> copy_counts, final BinaryDomainCombination dc, final GenomeWideCombinableDomains genome, @@ -293,7 +293,7 @@ public final class DomainCountsDifferenceUtil { private static void appendGoTerm( final StringBuilder sb, final GoTerm go_term ) { final GoId go_id = go_term.getGoId(); sb.append( "" + go_id - + "" ); + + "" ); sb.append( ":" ); sb.append( go_term.getName() ); sb.append( " [" ); @@ -538,7 +538,7 @@ public final class DomainCountsDifferenceUtil { final SortedMap low_copy_values, final SortedSet all_bdcs, final Map> bdcs_per_genome ) - throws IOException { + throws IOException { int counter = 0; int total_absense_counter = 0; int not_total_absense_counter = 0; @@ -556,8 +556,8 @@ public final class DomainCountsDifferenceUtil { } ++counter; html_writer.write( "" + bdc.getId0() + " = " + bdc.getId1() + "" ); + + "\">" + bdc.getId0() + " = " + bdc.getId1() + "" ); html_writer.write( "" ); html_writer.write( "" ); for( final GenomeWideCombinableDomains genome : genomes ) { @@ -570,7 +570,7 @@ public final class DomainCountsDifferenceUtil { bdcs_per_genome, species, html_writer, - "#0000FF" ); + "#0000FF" ); html_writer.write( "" ); } else if ( low_copy_species.contains( species ) ) { @@ -581,7 +581,7 @@ public final class DomainCountsDifferenceUtil { bdcs_per_genome, species, html_writer, - "#A0A0A0" ); + "#A0A0A0" ); html_writer.write( "" ); } else if ( high_copy_base_species.contains( species ) ) { @@ -592,7 +592,7 @@ public final class DomainCountsDifferenceUtil { bdcs_per_genome, species, html_writer, - "#404040" ); + "#404040" ); html_writer.write( "" ); } } @@ -662,7 +662,7 @@ public final class DomainCountsDifferenceUtil { final SortedSet all_domains, final SortedSet go_ids_of_passing_domains, final SortedMap> protein_lists_per_species ) - throws IOException { + throws IOException { int counter = 0; int total_absense_counter = 0; int not_total_absense_counter = 0; @@ -687,9 +687,9 @@ public final class DomainCountsDifferenceUtil { plain_writer.write( domain_id ); plain_writer.write( SurfacingConstants.NL ); html_writer.write( "
" + domain_id + "" ); + + "\">" + domain_id + "" ); html_writer.write( addGoInformation( domain_id, domain_id_to_go_ids_map, go_id_to_term_map ) - .toString() ); + .toString() ); html_writer.write( "" ); html_writer.write( "" ); for( final GenomeWideCombinableDomains genome : genomes ) { @@ -702,7 +702,7 @@ public final class DomainCountsDifferenceUtil { species, plain_writer, html_writer, - "#0000FF" ); + "#0000FF" ); html_writer.write( "" ); } else if ( low_copy_species.contains( species ) ) { @@ -713,7 +713,7 @@ public final class DomainCountsDifferenceUtil { species, plain_writer, html_writer, - "#A0A0A0" ); + "#A0A0A0" ); html_writer.write( "" ); } else if ( high_copy_base_species.contains( species ) ) { @@ -724,7 +724,7 @@ public final class DomainCountsDifferenceUtil { species, plain_writer, html_writer, - "#404040" ); + "#404040" ); html_writer.write( "" ); } } @@ -813,7 +813,7 @@ public final class DomainCountsDifferenceUtil { final SortedMap> protein_lists_per_species, final String domain_id ) throws IOException { final File my_proteins_file = new File( proteins_file_base.getParentFile() + ForesterUtil.FILE_SEPARATOR - + domain_id + PLUS_MINUS_PROTEINS_FILE_DOM_SUFFIX ); + + domain_id + PLUS_MINUS_PROTEINS_FILE_DOM_SUFFIX ); SurfacingUtil.checkForOutputFileWriteability( my_proteins_file ); final Writer proteins_file_writer = new BufferedWriter( new FileWriter( my_proteins_file ) ); SurfacingUtil.extractProteinNames( protein_lists_per_species,