[BioRuby-cvs] bioruby/lib/bio/db gff.rb,1.8,1.9
Katayama Toshiaki
k at dev.open-bio.org
Fri May 18 15:23:44 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/db
In directory dev.open-bio.org:/tmp/cvs-serv11570/lib/bio/db
Modified Files:
gff.rb
Log Message:
* GFF3 separator is '=' instead of ' '
Index: gff.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/gff.rb,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** gff.rb 5 Apr 2007 23:35:40 -0000 1.8
--- gff.rb 18 May 2007 15:23:42 -0000 1.9
***************
*** 139,142 ****
--- 139,153 ----
class GFF3 < GFF
VERSION = 3
+
+ private
+
+ def parse_attributes(attributes)
+ hash = Hash.new
+ attributes.split(/[^\\];/).each do |atr|
+ key, value = atr.split('=', 2)
+ hash[key] = value
+ end
+ return hash
+ end
end
More information about the bioruby-cvs
mailing list