[BioRuby-cvs] bioruby/lib/bio/util sirna.rb,1.2,1.3
Katayama Toshiaki
k at pub.open-bio.org
Tue Aug 9 01:40:46 EDT 2005
Update of /home/repository/bioruby/bioruby/lib/bio/util
In directory pub.open-bio.org:/tmp/cvs-serv660
Modified Files:
sirna.rb
Log Message:
* removed redundancy
Index: sirna.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/util/sirna.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sirna.rb 9 Aug 2005 05:39:26 -0000 1.2
--- sirna.rb 9 Aug 2005 05:40:44 -0000 1.3
***************
*** 40,44 ****
return false unless /[AU].{2}$/i =~ target
return false if /[GC]{9}/i =~ target
- return false if /[GC]{9}/i =~ target.complement.rna # same as above?
one_third = target.size * 1 / 3
--- 40,43 ----
***************
*** 53,57 ****
def reynolds?(target)
return false if /[GC]{9}/i =~ target
- return false if /[GC]{9}/i =~ target.complement.rna # means same as above?
return false unless /^.{4}A.{6}U.{2}[AUC].{5}[AU].{2}$/i =~ target
return true
--- 52,55 ----
More information about the bioruby-cvs
mailing list