[BioRuby-cvs] bioruby/lib/bio/data na.rb,0.19,0.20
Katayama Toshiaki
k at pub.open-bio.org
Wed Feb 8 12:15:44 UTC 2006
Update of /home/repository/bioruby/bioruby/lib/bio/data
In directory pub.open-bio.org:/tmp/cvs-serv9682/lib/bio/data
Modified Files:
na.rb
Log Message:
* to_re method is fixed to convert input sequence to downcase and not to
change original sequence itself.
Index: na.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/data/na.rb,v
retrieving revision 0.19
retrieving revision 0.20
diff -C2 -d -r0.19 -r0.20
*** na.rb 10 Dec 2005 18:14:22 -0000 0.19
--- na.rb 8 Feb 2006 12:15:42 -0000 0.20
***************
*** 4,8 ****
# Copyright:: Copyright (C) 2001, 2005
# Toshiaki Katayama <k at bioruby.org>
! # License:: LGPL
#
# $Id$
--- 4,8 ----
# Copyright:: Copyright (C) 2001, 2005
# Toshiaki Katayama <k at bioruby.org>
! # License:: Ruby's
#
# $Id$
***************
*** 39,60 ****
# p Bio::NucleicAcid.weight('atgc')
#
- #--
- #
- # This library is free software; you can redistribute it and/or
- # modify it under the terms of the GNU Lesser General Public
- # License as published by the Free Software Foundation; either
- # version 2 of the License, or (at your option) any later version.
- #
- # This library is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # Lesser General Public License for more details.
- #
- # You should have received a copy of the GNU Lesser General Public
- # License along with this library; if not, write to the Free Software
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- #
- #++
- #
module Bio
--- 39,42 ----
***************
*** 177,181 ****
def to_re(seq, rna = false)
! str = seq.to_s
str.gsub!(/[^atgcu]/) { |base|
NAMES[base] || '.'
--- 159,163 ----
def to_re(seq, rna = false)
! str = seq.to_s.downcase
str.gsub!(/[^atgcu]/) { |base|
NAMES[base] || '.'
More information about the bioruby-cvs
mailing list