Sha256: a59a8408897ffded73044bd450684748fcec49b277cf6e3c3ac341123bbe3339
Contents?: true
Size: 1.82 KB
Versions: 3
Compression:
Stored size: 1.82 KB
Contents
# # bio/db/kegg/cell.rb - KEGG/CELL database class # # Copyright (C) 2001 KAWASHIMA Shuichi <s@bioruby.org> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Id: cell.rb,v 1.7 2005/09/08 01:22:11 k Exp $ # require "bio/db" module Bio class KEGG class CELL < KEGGDB DELIMITER = RS = "\n///\n" TAGSIZE = 12 def initialize(entry) super(entry, TAGSIZE) end def entry_id field_fetch('ENTRY') end def definition field_fetch('DEFINITION') end def org field_fetch('ORGANISM') end alias organism org def mother field_fetch('MOTHER') end def daughter field_fetch('DAUGHTER').gsub(/ /, '').split(/,/) end def sister field_fetch('SISTER') end def fate field_fetch('CELL_FATE').gsub(/ /, '').split(/,/) end def contact field_fetch('CONTACT').gsub(/ /, '').split(/,/) end def expression field_fetch('EXPRESSION') end def fig field_fetch('FIGURE') end def ref field_fetch('REFERENCE') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bio-0.7.0 | lib/bio/db/kegg/cell.rb |
bio-0.7.1 | lib/bio/db/kegg/cell.rb |
bio-1.0.0 | lib/bio/db/kegg/cell.rb |