[BioRuby-cvs] bioruby/lib/bio/sequence format.rb,1.4.2.4,1.4.2.5

Jan Aerts aerts at dev.open-bio.org
Wed Feb 20 13:54:21 UTC 2008


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

Modified Files:
      Tag: BRANCH-biohackathon2008
	format.rb 
Log Message:
Fixed bug in formatting features when exporting to EMBL.


Index: format.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence/format.rb,v
retrieving revision 1.4.2.4
retrieving revision 1.4.2.5
diff -C2 -d -r1.4.2.4 -r1.4.2.5
*** format.rb	20 Feb 2008 09:56:22 -0000	1.4.2.4
--- format.rb	20 Feb 2008 13:54:19 -0000	1.4.2.5
***************
*** 47,51 ****
--- 47,53 ----
        end
  
+       result << "\n"
        result << format_qualifiers(feature.qualifiers, indent, width)
+       result << "\n"
      end
      return result
***************
*** 62,66 ****
          lines = ('/' + q + '="' + v + '"').fold(width)
        else
!         if v[/\D/]
            #v.delete!("\x00-\x1f\x7f-\xff")
            v.gsub!(/"/, '""')
--- 64,68 ----
          lines = ('/' + q + '="' + v + '"').fold(width)
        else
!         if ( v[/\D/] or q == 'chromosome' )
            #v.delete!("\x00-\x1f\x7f-\xff")
            v.gsub!(/"/, '""')
***************
*** 72,76 ****
        lines.gsub!(/^/, indent)
        lines
!     end.join
    end
  
--- 74,78 ----
        lines.gsub!(/^/, indent)
        lines
!     end.join("\n")
    end
  




More information about the bioruby-cvs mailing list