Package Bio :: Package Application :: Class AbstractCommandline
[hide private]
[frames] | no frames]

Class AbstractCommandline

source code

Known Subclasses:

Generic interface for running applications from biopython.

This class shouldn't be called directly; it should be subclassed to provide an implementation for a specific application.

Instance Methods [hide private]
 
__init__(self) source code
 
__str__(self)
Make the commandline with the currently set options.
source code
 
set_parameter(self, name, value=None)
Set a commandline option for a program.
source code
 
_check_value(self, value, name, check_function)
Check whether the given value is valid.
source code
Method Details [hide private]

_check_value(self, value, name, check_function)

source code 

Check whether the given value is valid.

This uses the passed function 'check_function', which can either return a [0, 1] (bad, good) value or raise an error. Either way this function will raise an error if the value is not valid, or finish silently otherwise.