lib/transrate/transrater.rb
# Reduce all metrics for the assembly to a single quality score.
#
#
#
# @return [Integer] the assembly score
Reduce all metrics for the assembly to a single quality score.
Reduce all metrics for the assembly to a single quality score .
def assembly_score
      @score, pg, rc = nil
      if @read_metrics.has_run
        pg = Metric.new('pg', @read_metrics.pr_good_mapping, 0.0)
      end
      if @comparative_metrics.has_run
        rc = Metric.new('rc', @comparative_metrics.reference_coverage, 0.0)
      end
      if (pg && rc)
        @score = DimensionReduce.dimension_reduce([pg, rc])
      end
      return @score
    end
def assembly_score @score , pg , rc = nil if @read_metrics . has_run pg = Metric . new ( 'pg' , @read_metrics . pr_good_mapping , 0.0 ) end if @comparative_metrics . has_run rc = Metric . new ( 'rc' , @comparative_metrics . reference_coverage , 0.0 ) end if ( pg && rc ) @score = DimensionReduce . dimension_reduce ( [ pg , rc ] ) end return @score end
Reduce all metrics for the assembly to a single quality score.
Reduce all metrics for the assembly to a single quality score .
the assembly score
the assembly score
Integer