Class: Chem::KEGG::KeggCompound

Inherits:
Object
  • Object
show all
Includes:
MDL::MdlMolParser, Molecule, Enumerable
Defined in:
lib/chem/db/kegg.rb

Constant Summary collapse

@@entries =
{}

Constants included from Molecule

Molecule::EpsHeader, Molecule::MDLCountLineFormat

Instance Attribute Summary collapse

Attributes included from MDL::MdlMolParser

#filename

Attributes included from Molecule

#name, #source

Attributes included from Graph

#adjacencies, #edges, #nodes

Instance Method Summary collapse

Methods included from MDL::MdlMolParser

#open, #parse

Methods included from Molecule

#-, #assign_2d_geometry, #breadth_first_search, #canonical_ring, #composition, #connected?, #deep_dup, #delete, #delete_bond, #depth_first_search, #divide, #find_smallest_ring, #find_sssr, #induced_sub, #molecular_weight, #n_hydrogen, #oxidation_number, #save, #save_as_mdl, #save_as_pdf, #search_pubchem, #subset_in_composition?, #to_cansmi, #to_eps, #to_sybyl, #trim

Methods included from Graph

#adj_matrix, #adjacency_list, #adjacent_to, #clustering_coefficient, #connection, #each, #match_by_adj_mat, #match_by_ullmann, #match_exhaustively, #matchable, #matchable_old, #morgan

Constructor Details

#initializeKeggCompound

Returns a new instance of KeggCompound.



202
203
204
205
# File 'lib/chem/db/kegg.rb', line 202

def initialize
  @nodes = []
  @edges = []
end

Instance Attribute Details

#entryObject

Returns the value of attribute entry.



200
201
202
# File 'lib/chem/db/kegg.rb', line 200

def entry
  @entry
end