[BioRuby-cvs] bioruby/lib/bio/data na.rb,0.12,0.13
Katayama Toshiaki
k at pub.open-bio.org
Wed Aug 10 08:53:04 EDT 2005
Update of /home/repository/bioruby/bioruby/lib/bio/data
In directory pub.open-bio.org:/tmp/cvs-serv6388/lib/bio/data
Modified Files:
na.rb
Log Message:
* Bio::Sequence::NA#to_re for RNA sequence is fixed to act same as bioruby-0.6.2
(the change introduced in bioruby-0.6.3 is not tested enough).
Index: na.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/data/na.rb,v
retrieving revision 0.12
retrieving revision 0.13
diff -C2 -d -r0.12 -r0.13
*** na.rb 8 Aug 2005 12:57:24 -0000 0.12
--- na.rb 10 Aug 2005 12:53:02 -0000 0.13
***************
*** 124,128 ****
end
! def to_re(seq)
str = ""
seq.to_s.downcase.each_byte do |base|
--- 124,128 ----
end
! def to_re(seq, rna = false)
str = ""
seq.to_s.downcase.each_byte do |base|
***************
*** 132,135 ****
--- 132,138 ----
str += "."
end
+ end
+ if rna
+ str.tr!("t", "u")
end
Regexp.new(str)
More information about the bioruby-cvs
mailing list