INNER CODE UNIT · Python
Barista
hahnlab/CAFE5 · scripts/barista.py:6
class Barista:
"""Read config file and execute CAFExp"""
def __init__(self, config_file):
self.command_line = list()
self.config = ConfigParser.SafeConfigParser()
self.config.read(config_file)
self.binary_path = self.config.get('CAFExp folder', 'cafexp')
# input files
self.tree_path = self.config.get('input files', 'tree') # -t
self.gene_families_path = self.config.get('input files', 'gene families', None) # -i
self.lambda_tree_path = self.config.get('input files', 'lambda tree', None) # -y
self.root_dist_path = self.config.get('input files', 'root distribution', None) # -f
# options
self.simulate = self.config.getboolean('options', 'simulate') # -s