# 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)