[BioRuby] bio/alignment compact! question

Trevor Wennblom trevor at corevx.com
Sun Nov 13 14:53:12 EST 2005


in 'bio/alignment.rb':

###
    def compact!
      #(Array-like)
      d = []
      self.each_pair do |k, s|
        if !s or s.empty?
          d << k
        end
      end
      d.each do |k|
        self.delete(d)
      end
      d.empty? ? nil : d
    end
###

should 'self.delete(d)' be 'self.delete(k)' ?


More information about the BioRuby mailing list