In a similar vein:def fasta_to_hash(filename) Hash[ Bio::FlatFile.auto(filename).map{|entry| [entry.definition, entry.seq] } ]endTo take a fnemiale and return a hash keyed by sequence definitions that contains Bio::Sequence objects. This is be Ruby 1.9 ony though