[BioRuby-cvs] bioruby/lib/bio/db prosite.rb,0.14,0.15

Katayama Toshiaki k at dev.open-bio.org
Tue Jul 25 18:53:58 UTC 2006


Update of /home/repository/bioruby/bioruby/lib/bio/db
In directory dev.open-bio.org:/tmp/cvs-serv27831/lib/bio/db

Modified Files:
	prosite.rb 
Log Message:
* added 're' instance method in addition to 'pa2re' class method to
  return Regexp of the PATTERN entry instantly


Index: prosite.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/prosite.rb,v
retrieving revision 0.14
retrieving revision 0.15
diff -C2 -d -r0.14 -r0.15
*** prosite.rb	8 May 2006 14:23:07 -0000	0.14
--- prosite.rb	25 Jul 2006 18:53:56 -0000	0.15
***************
*** 478,482 ****
        pattern.tr!('x', '.')	# (5) any amino acid is accepted : 'x'
        pattern.tr!('-', '')	# (6) each element is separated by a '-'
!       Regexp.new(pattern)
      end
  
--- 478,482 ----
        pattern.tr!('x', '.')	# (5) any amino acid is accepted : 'x'
        pattern.tr!('-', '')	# (6) each element is separated by a '-'
!       Regexp.new(pattern, Regexp::IGNORECASE)
      end
  
***************
*** 485,488 ****
--- 485,492 ----
      end
  
+     def re
+       self.class.pa2re(self.pa)
+     end
+ 
  
      ### prosite profile to regular expression




More information about the bioruby-cvs mailing list