lib/transrate/assembly.rb
# return the number of bases in the assembly, calculating
# from the assembly if it hasn't already been done.
return the number of bases in the assembly, calculating
from the assembly if it hasn't already been done.
return the number of bases in the assembly calculating from the assembly if it hasn ' t already been done .
def n_bases
      unless @n_bases
        @n_bases = 0
        @assembly.each { |s| @n_bases += s.length }
      end
      @n_bases
    end
def n_bases unless @n_bases @n_bases = 0 @assembly . each { | s | @n_bases += s . length } end @n_bases end
return the number of bases in the assembly, calculating
from the assembly if it hasn't already been done.
return the number of bases in the assembly calculating from the assembly if it hasn ' t already been done .