X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=code_ruby%2Flib%2Fmaasha%2Ffastq.rb;h=4ac44aa70cb84045158fc775f782be7719fdbbbd;hb=c4b49c5ce1ed3b46ae37e6ebd73c21d67d6d4810;hp=c57f4eb9165bb3423fccc22590f89550a8125c69;hpb=5a9b7c80e4e4428e404575ed3c0290cde15a7402;p=biopieces.git diff --git a/code_ruby/lib/maasha/fastq.rb b/code_ruby/lib/maasha/fastq.rb index c57f4eb..4ac44aa 100644 --- a/code_ruby/lib/maasha/fastq.rb +++ b/code_ruby/lib/maasha/fastq.rb @@ -83,7 +83,7 @@ class FastqIndex # Method to read from file a Fastq entry from an indexed position, # and return the entry as a Seq object. def get(seq_name) - raise FastqError, "Sequence name: #{seq_name} not found in index." unless @index.has_key? seq_name + raise FastqError, "Sequence name: #{seq_name} not found in index." unless @index[seq_name] elem = @index[seq_name] @ios.sysseek(elem.offset_seq)