[BioRuby-cvs] bioruby/lib/bio/sequence na.rb,1.6,1.7

Trevor Wennblom trevor at dev.open-bio.org
Mon Apr 23 16:43:53 UTC 2007


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

Modified Files:
	na.rb 
Log Message:
Move cut_with_enzyme to Bio::Sequence::NA

Index: na.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence/na.rb,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** na.rb	5 Apr 2007 23:35:41 -0000	1.6
--- na.rb	23 Apr 2007 16:43:51 -0000	1.7
***************
*** 468,471 ****
--- 468,487 ----
    protected :rna?
  
+   # Example:
+   #
+   #   seq = Bio::Sequence::NA.new('gaattc')
+   #   cuts = seq.cut_with_enzyme('EcoRI')
+   #
+   # _or_
+   #
+   #   seq = Bio::Sequence::NA.new('gaattc')
+   #   cuts = seq.cut_with_enzyme('g^aattc')
+   # ---
+   # See Bio::RestrictionEnzyme::Analysis.cut
+   def cut_with_enzyme(*args)
+     Bio::RestrictionEnzyme::Analysis.cut(self, *args)
+   end
+   alias cut_with_enzymes cut_with_enzyme
+ 
  end # NA
  




More information about the bioruby-cvs mailing list