[BioRuby] bio/alignment compact! question

Moses Hohman mmhohman at northwestern.edu
Mon Nov 14 17:49:59 EST 2005


Sure seems like it, on both counts.

Moses

On Nov 13, 2005, at 1:53 PM, Trevor Wennblom wrote:

> 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)' ?
> _______________________________________________
> BioRuby mailing list
> BioRuby at open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioruby
>



More information about the BioRuby mailing list