sorting added ...
[jalview.git] / forester / java / src / org / forester / surfacing / PairwiseGenomeComparator.java
index ae94f81..99d336f 100644 (file)
@@ -6,7 +6,7 @@
 // Copyright (C) 2008-2009 Christian M. Zmasek
 // Copyright (C) 2008-2009 Burnham Institute for Medical Research
 // All rights reserved
-// 
+//
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
@@ -16,7 +16,7 @@
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 // Lesser General Public License for more details.
-// 
+//
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
@@ -99,7 +99,6 @@ public class PairwiseGenomeComparator {
                                             final boolean verbose,
                                             final String automated_pairwise_comparison_prefix,
                                             final String command_line_prg_name,
-                                            final boolean display_histograms,
                                             final File out_dir,
                                             final boolean write_pairwise_comparisons ) {
         init();
@@ -164,7 +163,6 @@ public class PairwiseGenomeComparator {
                                                                                                                                                               list_of_genome_wide_combinable_domains
                                                                                                                                                                       .get( j ) );
                 genome_similarity_calculator.setAllowDomainsToBeIgnored( false );
-                // TODO make histos for these 5 values
                 double dissimilarity_score_mean;
                 if ( stats.getN() < 1 ) {
                     // No domains in common
@@ -216,6 +214,7 @@ public class PairwiseGenomeComparator {
                                                                                 new StringBuilder( species_i + "-"
                                                                                         + species_j ),
                                                                                 writer,
+                                                                                null,
                                                                                 similarities,
                                                                                 true,
                                                                                 null,
@@ -229,23 +228,13 @@ public class PairwiseGenomeComparator {
                                 + pairwise_similarities_output_file_str + "\" [" + e.getMessage() + "]" );
                     }
                 }
-                // pairwise_matrix.setValue( i, j, cdc_list.get( cdc_list.size()
-                // - 1 ) );
                 if ( pw_stats != null ) {
                     if ( pw_stats.getMin() >= pw_stats.getMax() ) {
-                        ForesterUtil.printWarningMessage( command_line_prg_name, "for [" + species_i + "-" + species_j
-                                + "] score minimum is [" + pw_stats.getMin() + "] while score maximum is ["
-                                + pw_stats.getMax() + "], possibly indicating that a genome is compared to itself" );
-                    }
-                    if ( display_histograms && ( pw_stats.getMin() < pw_stats.getMax() ) ) {
-                        //final double[] values = pw_stats.getDataAsDoubleArray();
-                        // List<HistogramDataItem> data_items = new
-                        // ArrayList<HistogramDataItem>( values.length );
-                        // for( int n = 0; n < values.length; i++ ) {
-                        // data_items.add( new BasicHistogramDataItem( "", values[ n ] )
-                        // );
-                        // }
-                        //~   _histogram_datas.add( new HistogramData( species_i + "-" + species_j, values, null, 20 ) );
+                        ForesterUtil
+                                .printWarningMessage( command_line_prg_name, "for [" + species_i + "-" + species_j
+                                        + "] score minimum is [" + pw_stats.getMin() + "] while score maximum is ["
+                                        + pw_stats.getMax()
+                                        + "], possibly indicating that a genome is compared to itself" );
                     }
                 }
             }