Interesting bug - current CVS of BioRuby. First is OK, other one not: bioruby> seq = Bio::Sequence::NA.new("atgcatgcaaaa") bioruby> puts seq.complement ttttgcatgcat bioruby> seq = Bio::Sequence::NA.new("at") bioruby> puts seq.complement at