Permalink
Browse files

Fixed a lines.grep bug in blosum.rb

  • Loading branch information...
1 parent b7bd859 commit 6710b4186b6e9293b3f6f0a5a43c75f1afb93a8b @fredrikj committed Feb 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bio/appl/seala/blosum.rb
@@ -6,7 +6,7 @@
class Blosum < Hash
attr_reader :keys
def initialize(arg)
- @keys, *values = arg.grep(/^[^#]/).map{|i| i.split}
+ @keys, *values = arg.lines.grep(/^[^#]/).map{|i| i.split}
@ndec = (values[0][1]=~/\.(\d*)/) ? $1.size : 0
@keys.each_with_index do |key,i|
self[key] =

0 comments on commit 6710b41

Please sign in to comment.