3.1. wc package

3.1.2. Submodules

3.1.3. wc.__main__ module

Whole-cell modeling command line interface

Author:Jonathan Karr <jonrkarr@gmail.com>
Date:2018-05-15
Copyright:2018, Karr Lab
License:MIT
class wc.__main__.App(argv=None, config=None)[source]

Bases: cement.core.foundation.App

Command line application

class Meta[source]

Bases: object

base_controller = 'base'[source]
handlers = [][source]
label = 'wc'[source]
classmethod add_package_handlers(argv, stacked_on, package_name, label, description)[source]

Add handlers for a package to add to an application

Parameters:
  • argv (list of str) – command line arguments
  • stacked_on (str) – where the handlers for the package should be stacked
  • package_name (str) – name of the package whose handlers should be added the application
  • label (str) – root label for the handlers within the application
  • description (str) – root descipription for the handlers within the application
Raises:

SystemExit – if a handler is not a base or stacked on a base

class wc.__main__.BaseController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Base controller for command line application

class Meta[source]

Bases: object

arguments = [(['-v', '--version'], {'action': 'version', 'version': '0.0.1'})][source]
description = 'Whole-cell models and whole-cell modeling tools'[source]
label = 'base'[source]
class wc.__main__.ModelController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Model controller

class Meta[source]

Bases: object

description = 'Whole-cell models'[source]
label = 'model'[source]
stacked_on = 'base'[source]
stacked_type = 'nested'[source]
class wc.__main__.ToolController(*args, **kw)[source]

Bases: cement.ext.ext_argparse.ArgparseController

Tool controller

class Meta[source]

Bases: object

description = 'Whole-cell modeling tools'[source]
label = 'tool'[source]
stacked_on = 'base'[source]
stacked_type = 'nested'[source]
wc.__main__.main()[source]

3.1.4. Module contents