[BioRuby-cvs] bioruby/lib/bio sequence.rb,0.38,0.39

Katayama Toshiaki k at pub.open-bio.org
Sun Aug 7 20:44:57 EDT 2005


Update of /home/repository/bioruby/bioruby/lib/bio
In directory pub.open-bio.org:/tmp/cvs-serv29219/lib/bio

Modified Files:
	sequence.rb 
Log Message:
* Bio::Sequence::AA#to_re is changed to use AminoAcid.to_re


Index: sequence.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence.rb,v
retrieving revision 0.38
retrieving revision 0.39
diff -C2 -d -r0.38 -r0.39
*** sequence.rb	7 Aug 2005 09:58:22 -0000	0.38
--- sequence.rb	8 Aug 2005 00:44:55 -0000	0.39
***************
*** 247,251 ****
        end
  
-       # NucleicAcid is defined in bio/data/na.rb
        def to_re
  	if self.rna?
--- 247,250 ----
***************
*** 302,310 ****
        end
  
        def to_re
! 	return Regexp.new(self)
        end
  
-       # AminoAcid is defined in bio/data/aa.rb
        def codes
  	array = []
--- 301,313 ----
        end
  
+       # AminoAcid is defined in bio/data/aa.rb
+       def molecular_weight
+         AminoAcid.weight(self)
+       end
+ 
        def to_re
! 	AminoAcid.to_re(self)
        end
  
        def codes
  	array = []
***************
*** 319,327 ****
  	  AminoAcid.names[x]
  	end
-       end
- 
-       # AminoAcid is defined in bio/data/aa.rb
-       def molecular_weight
-         AminoAcid.weight(self)
        end
  
--- 322,325 ----



More information about the bioruby-cvs mailing list