[BioRuby-cvs] bioruby/lib/bio/db/kegg glycan.rb,1.3,1.4
Katayama Toshiaki
k at dev.open-bio.org
Thu Mar 8 00:14:18 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/db/kegg
In directory dev.open-bio.org:/tmp/cvs-serv13987
Modified Files:
glycan.rb
Log Message:
* bindings method is removed
* comment and remarks methods are added
* orthologs and dblinks methods are changed to use lines_fetch
Index: glycan.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/kegg/glycan.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** glycan.rb 19 Sep 2006 05:53:13 -0000 1.3
--- glycan.rb 8 Mar 2007 00:14:16 -0000 1.4
***************
*** 64,84 ****
end
- # BINDING
- def bindings
- unless @data['BINDING']
- ary = Array.new
- lines = lines_fetch('BINDING')
- lines.each do |line|
- if /^\S/.match(line)
- ary << line
- else
- ary.last << " #{line.strip}"
- end
- end
- @data['BINDING'] = ary
- end
- @data['BINDING']
- end
-
# COMPOUND
def compounds
--- 64,67 ----
***************
*** 118,135 ****
def orthologs
unless @data['ORTHOLOG']
! ary = Array.new
! lines = lines_fetch('ORTHOLOG')
! lines.each do |line|
! if /^\S/.match(line)
! ary << line
! else
! ary.last << " #{line.strip}"
! end
! end
! @data['ORTHOLOG'] = ary
end
@data['ORTHOLOG']
end
# REFERENCE
def references
--- 101,119 ----
def orthologs
unless @data['ORTHOLOG']
! @data['ORTHOLOG'] = lines_fetch('ORTHOLOG')
end
@data['ORTHOLOG']
end
+ # COMMENT
+ def comment
+ field_fetch('COMMENT')
+ end
+
+ # REMARK
+ def remark
+ field_fetch('REMARK')
+ end
+
# REFERENCE
def references
***************
*** 152,165 ****
def dblinks
unless @data['DBLINKS']
! ary = Array.new
! lines = lines_fetch('DBLINKS')
! lines.each do |line|
! if /^\S/.match(line)
! ary << line
! else
! ary.last << " #{line.strip}"
! end
! end
! @data['DBLINKS'] = ary
end
@data['DBLINKS']
--- 136,140 ----
def dblinks
unless @data['DBLINKS']
! @data['DBLINKS'] = lines_fetch('DBLINKS')
end
@data['DBLINKS']
More information about the bioruby-cvs
mailing list