Package Bio :: Package KEGG
[hide private]
[frames] | no frames]

Package KEGG

source code

Code to work with data from the KEGG database.

References:

Kanehisa, M. and Goto, S.; KEGG: Kyoto Encyclopedia of Genes and Genomes. Nucleic Acids Res. 28, 29-34 (2000).

URL: http://www.genome.ad.jp/kegg/

Submodules [hide private]

Functions [hide private]
 
_default_wrap(indent) source code
 
_wrap_kegg(line, max_width=68, wrap_rule=<function <lambda> at 0x5addaa0>)
Wraps the input line for KEGG output.
source code
 
_write_kegg(item, info, indent=12)
Write a indented KEGG record item.
source code
Variables [hide private]
  KEGG_ITEM_LENGTH = 12
  KEGG_LINE_LENGTH = 80
  KEGG_DATA_LENGTH = 68
  __package__ = None
hash(x)
Function Details [hide private]

_wrap_kegg(line, max_width=68, wrap_rule=<function <lambda> at 0x5addaa0>)

source code 

Wraps the input line for KEGG output.

Arguments:

o info - String holding the information we want wrapped for KEGG output. o max_width - Maximum width of a line. o wrap_rule - A wrap rule (see above) for deciding how to split strings that must be wrapped.

_write_kegg(item, info, indent=12)

source code 

Write a indented KEGG record item.

Arguments:

o item - The name of the item to be written. o info - The (wrapped) information to write. o indent - Width of item field.