cmonkey.config
index
/home/weiju/Projects/ISB/cmonkey-python/cmonkey/config.py

config.py - cMonkey configuration module
 
This file is part of cMonkey Python. Please see README and LICENSE for
more information and licensing details.

 
Modules
       
ConfigParser
argparse
cmonkey.datamatrix
json
logging
cmonkey.meme
os
random
sys
tempfile
cmonkey.util

 
Functions
       
get_config_boolean(config, section, option, default_value)
tries to retrieve a boolean value from config or returns the default
get_config_int(config, section, option, default_value=None)
tries to retrieve an int value from config or returns the default
get_config_str(config, section, option, default_value=None)
tries to retrieve a str value from config or returns the default
read_ratios(params, args)
reading ratios matrix
set_config(config)
Returns a dictionary containing the configuration contained in
the config parser object. Note that there are only 3 fixed sections:
General, Membership and Scoring
set_config_general(config, params)
Process General section
set_config_membership(config, params)
membership default parameters
set_config_motifs(config, params)
process the Motifs section
set_config_scoring_functions(config, params)
processing scoring function specific stuff
setup(arg_ext=None)
main configuration function - does everything. It reads and configures
everything that can be derived from the configuration files and input
parameters and returns the configuration in a dictionary as well as
the normalized ratios matrix.
The arg_ext parameter can be used to add additional argements to the
argparser that can be processed outside of the core application.
setup_default(args, config_parser)
default configuration method
setup_resume(args, config_parser)
setup from out directory
write_general_settings(outfile, config_params)
Writes the General section of the final.ini file
write_membership_settings(outfile, config_params)
Writes the Membership section of the final.ini file
write_section(outfile, section, settings)
Writes a scoring function specific section to the final.ini file
write_setup(config_params)
Write all active configuration settings to <outputdir>/final.ini

 
Data
        ALL_DEBUG_OPTIONS = set(['dump_results', 'dump_scores', 'keep_mastout', 'keep_memeout', 'profile_mem', 'random_seed'])
DESCRIPTION = 'cMonkey (Python port) (c) 2011-2012,\nInstitute f... License V3.\nSee README and LICENSE for details.\n'
LOG_FORMAT = '%(asctime)s %(levelname)-8s %(message)s'
SYSTEM_INI_PATH = '/etc/cmonkey-python/default.ini'
USER_INI_PATH = 'config/default.ini'