Skip to content

Commit

Permalink
* removed redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
ktym committed Aug 9, 2005
1 parent 2275fab commit b792a57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/bio/util/sirna.rb
Expand Up @@ -17,7 +17,7 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id: sirna.rb,v 1.2 2005/08/09 05:39:26 k Exp $
# $Id: sirna.rb,v 1.3 2005/08/09 05:40:44 k Exp $
#

require 'bio/sequence'
Expand All @@ -39,7 +39,6 @@ def uitei?(target)
return false unless /^.{2}[GC]/i =~ target
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
start_pos = @target_size - one_third - 1
Expand All @@ -52,7 +51,6 @@ def uitei?(target)

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
end
Expand Down

0 comments on commit b792a57

Please sign in to comment.