Bioruby help

Can someone tell me why I am getting following error:

bio_sequence__NA.rb:15: undefined method `new’ for :NA:Symbol

I am new to Ruby, and I will really appreciate. Thank you.

require ‘rubygems’
require ‘bio’

dna_sequence =‘dna.txt’).read)
puts dna_sequence


You’re missing one colon after “Bio::Sequence:”. The line should say

dna_sequence = …

By the way, you shouldn’t write‘dna.txt’).read

This creates an I/O stream (via and leaves it open. Instead,

So the full line is

dna_sequence =‘dna.txt’))