[BioRuby-cvs] bioruby/lib/bio/util/restriction_enzyme/range/sequence_range fragment.rb, 1.4, 1.5

Trevor Wennblom trevor at dev.open-bio.org
Sun May 13 04:08:04 UTC 2007


Update of /home/repository/bioruby/bioruby/lib/bio/util/restriction_enzyme/range/sequence_range
In directory dev.open-bio.org:/tmp/cvs-serv5059/lib/bio/util/restriction_enzyme/range/sequence_range

Modified Files:
	fragment.rb 
Log Message:
Added view_ranges parameter to indicate preservation of cut location data in results.


Index: fragment.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/util/restriction_enzyme/range/sequence_range/fragment.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** fragment.rb	5 Apr 2007 23:35:42 -0000	1.4
--- fragment.rb	13 May 2007 04:08:02 -0000	1.5
***************
*** 34,38 ****
    end
  
!   DisplayFragment = Struct.new(:primary, :complement)
  
    def for_display(p_str=nil, c_str=nil)
--- 34,38 ----
    end
  
!   DisplayFragment = Struct.new(:primary, :complement, :p_left, :p_right, :c_left, :c_right)
  
    def for_display(p_str=nil, c_str=nil)
***************
*** 46,49 ****
--- 46,54 ----
        @complement_bin.include?(item) ? df.complement << c_str[item] : df.complement << ' '
      end
+     
+     df.p_left  = @primary_bin.first
+     df.p_right = @primary_bin.last
+     df.c_left  = @complement_bin.first
+     df.c_right = @complement_bin.last
  
      df




More information about the bioruby-cvs mailing list