[BioRuby] bio/alignment compact! question

Toshiaki Katayama ktym at hgc.jp
Mon Nov 14 19:39:17 EST 2005


The bio/alignment seems that it has not been used widely.
I heard that the maintainer is currently working on the code
for improving its functionality.

Thanks,
Toshiaki

On 2005/11/15, at 7:49, Moses Hohman wrote:

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



More information about the BioRuby mailing list